Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

As already mentioned in the chapter → onCore Execution Model the execution model of onCore is based on a sequential flow-of-control-model

Note

Triggers and Events must be used to initiate the execution of Units. Therefore a Unit where the Execute Trigger is not wired will not do anything.

Unit Triggers

Triggers are represented by grey, green and red triangles. They cannot be wired to anything else than their own kind.

Trigger Type

Trigger Representation

Trigger Description
Execute Trigger

Image Added

This trigger gets fired by the execution flow and the Unit will be called to execute.
Success Trigger

Image Added

Upon completion, this trigger will be automatically

set This trigger gets set by the execution flow and the Unit will be called to execute.

fired and the next Unit, which has its Execute Trigger wired to this Complete Trigger, will be executed next.

Complete Trigger
Fail Trigger

Image Added

If something goes wrong while a Unit is being executed, the Fail Trigger will be fired instead of the Success Trigger.

Image Added

Info

Units may usually have several Complete Triggerstwo output Triggers (Success and Fail), which can be used to branch to individual flows. These triggers , when wired together, precisely define the execution flow of the Workflow. As a consequence to the strictly controlled execution flow, it is not possible that an Execute Trigger of a Unit gets wired to more than one trigger or port.

Events

...

to wire a Trigger to multiple other Triggers. If this is required please use the appropriate Units, such as Multi Trigger, Branch and Trigger Join.

Event Units

Image Added

Event Units are used to trigger execution of an entire Workflow, or just a subset of a Workflow, or a Subworkflow. This is a very powerful concept, allowing Workflows to be triggered from any Workflow condition, but also – for example – from network events. The simplest example is the Trigger on Start event. 
Event TypeEvent Description
Trigger on Start

...

Sends a Trigger when the Workflow is started.
Trigger on StopSends a Trigger when the Workflow is stopped.
UI TriggerSends a Trigger when the Trigger Button has been clicked.
Trigger TickSends a trigger based on a time interval. If the old-style method

...

of regular execution

...

is required,

...

this Unit can be used.
Info

The UI Trigger Unit is very helpful to quickly test a Workflow or a certain part of a Workflow.