Flow Services-Sequence Continue:
Vikalp Kulshrestha
1 min read
Applications of Sequence:
- Use the Sequence as Try and Catch block :
Sequence (Main)(Success)
--Sequence(Try)(Failure)
--Sequence(Catch)(Done)
WmPublic package’s pub.flow:getLastError:
*Obtains detailed information about the last exception that was trapped within a flow.
*Uses no inputs and one output:
lastError: Document of type pub.event:exceptionInfo, contains information about the last error.
Put the getLastError built-in service first in the Catch block (exit on the DONE block). Because when a service fails then pipeline data went so for saving pipeline data just make the getLastError service your first service in the catch block.
0
Subscribe to my newsletter
Read articles from Vikalp Kulshrestha directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by