DevOps Edition for Continuous Integration 10.5 | Service Development Help | 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.

Copyright © 2017-2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.