Synchronize On Expression
Synchronization robot nodes that synchronize on expression will execute their expression periodically (every few seconds) until the expression evaluates to true.
If you select Synchronize on Expression, the Routing Events, Initial Expression and Routing Expression fields display.
• Routing events control the flow of a process by mapping an event to an action in links coming from the process. For more information on controlling flow and mapping of events to action, see
Links.
• Custom routing events are defined in the Routing Events field.
Routing in an expression-based synchronization robot node must be automatic. Automatic events need an event firing expression to fire the event. This expression is a fragment of Java code that sets the variable result to one of the custom routing events. The expression can reference any variable defined in the Variables tab.
For code samples you can copy and paste, see
Synchronization Robot Samples.
The expression entered in the Initial Expression field is executed when the process reaches the Synchronization robot. The route selected during the execution of the Synchronization robot is based upon the result of the conditions specified in the expression.
If the result variable is not set in the Routing Expression field, the Synchronization robot does not execute further.