Software AG Products 10.7 | Integrating On-Premises and Cloud Applications | Service Development | Building Flow Services | The EXIT Step | Exiting from Iterations, Steps, or Services | Java Equivalents for EXIT Behavior
 
Java Equivalents for EXIT Behavior
The EXIT step behavior is comparable to some instructions in Java. If you are familiar with Java, knowing the Java equivalent for EXIT behavior might be helpful.
The following table identifies the EXIT step configuration and its comparable Java instruction.
EXIT Step Configuration
Equivalent Java instruction
Exit $parent, signal failure
throw exception
Exit $flow, signal success
return
Exit $loop, signal success
break
Exit $iteration, signal success
continue
Exit $parent, signal success
When Integration Server executes an EXIT step with this configuration, Integration Server completes the enclosing parent with success.
No Java equivalent.
Equivalent to a return at the top level or equivalent to a break when the EXIT step is an immediate child of a LOOP or REPEAT.
Exit $flow, signal failure
Flow terminates immediately and then throws exception.
No Java equivalent.
Exit $loop or label, signal failure
Flow terminates the enclosing target with failure.
No Java equivalent.
Note:
Using an EXIT step to exit from a FINALLY step and signal success cancels any pending failure just as a non-Exception abrupt completion (return, break, or continue) of a finally block cancels a pending Exception in Java.