Processes provided message checking if an existing execution context is waiting
for this message to complete or if this message can trigger the execution of a
new process.
Creates a new persistent activity instance implementing the provided interface and
assigns it to the provided process, only needed once in a process creation.
The execution context of an Activity, has details about the execution
history of the activity and is specialized for each type of activity,
knowing therefore how to execute each of those type.
Thrown when the result obtained after executing a finder is not consistent
with the finder (i.e. a findById that returns no result or a findByName
that returns many result when names are supposed to be unique).
A flow is an activity container used to provide concurreny in
activity execution and also to use a simple linkage between
activities (from, to) instead of a container oriented activity
organisation.
getCondition(int) -
Method in interface org.smartcomps.twister.engine.priv.core.definition.Switch
Returns the condition at index.
getConditions() -
Method in class org.smartcomps.twister.engine.priv.core.definition.impl.SwitchImpl
getConditions() -
Method in interface org.smartcomps.twister.engine.priv.core.definition.Switch
getContainer() -
Method in interface org.smartcomps.twister.engine.priv.core.definition.Activity
An Activity is contained either in a TwisterProcess of in a StructuredActivity,
therefore this method will return the StructuredActivity containing this activity
only if it's not the root activity.
Gets this execution context initial activity (the one whose execution
resulted in the creation of this execution context) passing through
its parent container or process instance.
getProcess() -
Method in interface org.smartcomps.twister.engine.priv.core.definition.Activity
An Activity is contained either in a TwisterProcess of in a StructuredActivity,
therefore this method will return the TwisterProcess containing this activity
only if it is the root activity.
getProcess() -
Method in class org.smartcomps.twister.engine.priv.core.definition.impl.ActivityImpl
TECHNICAL, DO NOT USE
Only one activity in a processSet really has a processSet, therefore
this method will often return null ; use the getContainer method
instead, that always returns the right container (the real activity
container or the processSet if it's a root activity).
Controls message received by the engine, check if they are relevant
to any process of process instance and if so do the appropriate thing
to the appropriate activity or execution context.
notifyAlarm(int) -
Method in interface org.smartcomps.twister.engine.priv.core.dynamic.PickEC
Notifies that the alarm event of the activity at activityPos in this
structured activity has been fired, meaning the pick execution context
has expired and the activity declared to be executed in that case
must be executed.