Well,afer some tests,there must be some problem in the CODE you write.
In the Built-In service refernece,pay attention to the usage notes of “pub.flow:getLastError”,it reads:
“Each execution of a service (whether the service succeeds or fails) updates the value
returned by getLastError. Consequently, getLastError itself resets the value of lastError.
Therefore, if the results of getLastError will be used as input to subsequent services, map
the value of lastError to a variable in the pipeline.”
This means that , in the catch sequence,u can not put any service befre the “pub.flow:getLastError”,including transform used in the MAP!
so ,you’d make sure ,in the catch sequence, there are no services/no transforms in MAP before pub.flow:getLastError,
I suggest to make “pub.flow:getLastError” the first step in the catch sequence.
Hope this will help.
Regards!
Yee.
#Integration-Server-and-ESB#Flow-and-Java-services#webMethods