Basic Administration > Supporting Collaboration > Workflow Administration > Workflow Tools > Workflow Template Administration > Workflow Template Editor > Workflow Editor Nodes > Workflow Robots > Synchronize Robot > Synchronize on Class or Object Event
  
Synchronize on Class or Object Event
Synchronization robots nodes that synchronize on events will execute their expression whenever the event is emitted. For class-based synchronization robots, this means when any object of the target class emits the specified event (for example, every time a part reaches the Released state). For object-based synchronization robots, this means when the target object emits the specified event.
The procedures for synchronizing on class events and object events is almost identical.
For Class Events, you must select a Windchill class.
For Object Events, you must select a variable referencing a Windchill object.
Windchill-keyed events are emitted by Windchill services and managers. The Synchronization robot node listens for the event defined on this tab and fires when the event occurs.
You can specify a filtering expression that must be true for the Synchronize robot to fire. If the expression is not true, then the Synchronize robot does not fire. However the robot continues to recheck the event and fires when the expression becomes true.
Use the following procedure to define the event that the robot will listen for.
Select the class of the event from the Windchill Class drop-down list.
Select the event from the Event drop-down list.
If you want to specify a filtering expression, enter it in the Routing Expression field.
Use the following procedure to synchronize the start of an activity or process with a Windchill-keyed class event:
1. Enter the name of the custom event in the Routing Events field.
2. Enter the event and its source in the Routing Expression. Enter only one custom event per line.
3. Enter a variable from the Insert drop-down list.
4. Click Check Syntax to verify that the Java code you have entered is correct.