Contents |
An OTS exhibits system wide stateful behaviour that is visible in the course of a run.
A Task holds the state in the Distributor. Intimately linked to this there is a simple state machine in the Worker which cycles around a two state system.
1. The Worker goes into a Started State on receipt of a CommandMessage. At this point it sends a The StateChangeMessage to the Response Queue with the Start Condition.
2. When the Task has finished Running the Worker is back in the Finished State, this State Change is communicated via a State Change Message via a Finish Condition.
The States Changes of the Tasks are triggered by Conditions that communicated by a special DTO The StateChangeMessage.