Flow Services-Sequence Continue:

Applications of Sequence:

  1. Use the Sequence as Try and Catch block :

Sequence (Main)(Success)

--Sequence(Try)(Failure)

--Sequence(Catch)(Done)

  1. 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.