The following example defines a flow in which the operation flow performs the sendHost operation step if this operation step returns a 0, performs the rollback operation step if this operation step returns a 1, and exits the operation flow if this operation step returns any other number other than 0 or 1.
To define an operation step that makes a comparison (CompareAssertion) and then directs the flow according to the results of the comparison, use the following format:
The following example performs a comparison in which the operation flow performs the next operation step if the amount is less than the limit. If the amount is more than the limit, the operation flow performs the error message operation step.
To define an operation step that checks whether a data element exists (ExistsAssertion) and then directs the flow according to the results of the check, use the following format:
The following example checks whether the amount data element exists and if it does, the toolkit performs the next operation step in the flow. If the amount does not exist, the operation flow performs the error message operation step.
To define an operation step that checks the number of elements (NumOfElementsAssertion) in a collection and then directs the flow according to whether the number of elements conforms to the specified operator, use the following format:
The following example checks whether the list of accounts has two elements and if it does, the toolkit performs the next operation step in the flow. If the list of accounts has more or less than two elements, the operation flow performs the error message operation step.