public interface IInternalBpmnComponentFeature
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TYPE_ACTIVITY
Constant for step event.
|
static java.lang.String |
TYPE_THREAD
The change event prefix denoting a thread event.
|
Modifier and Type | Method and Description |
---|---|
IMonitoringEvent |
createActivityEvent(java.lang.String type,
ProcessThread thread,
MActivity activity)
Create an activity event (start, end).
|
IMonitoringEvent |
createThreadEvent(java.lang.String type,
ProcessThread thread)
Create a thread event (creation, modification, termination).
|
IActivityHandler |
getActivityHandler(MActivity activity)
Get the activity handler for an activity.
|
java.lang.Object |
getContextVariable(java.lang.String name)
Get the value of the given context variable.
|
java.util.List<java.lang.Object> |
getMessages()
Get the messages.
|
java.util.List<IConnection> |
getStreams()
Get the streams.
|
ProcessThread |
getTopLevelThread()
Get the top level thread (is not executed and just acts as top level thread container).
|
boolean |
hasContextVariable(java.lang.String name)
Test if the given context variable is declared.
|
boolean |
isFinished()
Check, if the process has terminated.
|
boolean |
isFinished(java.lang.String pool,
java.lang.String lane)
Check, if the process has terminated.
|
boolean |
isReady()
Check if the process is ready, i.e.
|
boolean |
isReady(java.lang.String pool,
java.lang.String lane)
Check if the process is ready, i.e.
|
void |
notify(MActivity activity,
ProcessThread thread,
java.lang.Object event)
Method that should be called, when an activity is finished and the following activity should be scheduled.
|
void |
setContextVariable(java.lang.String name,
java.lang.Object value)
Set the value of the given context variable.
|
void |
setContextVariable(java.lang.String name,
java.lang.Object key,
java.lang.Object value)
Set the value of the given context variable.
|
void |
step(MActivity activity,
IInternalAccess instance,
ProcessThread thread,
java.lang.Object event)
Make a process step, i.e.
|
static final java.lang.String TYPE_ACTIVITY
static final java.lang.String TYPE_THREAD
boolean hasContextVariable(java.lang.String name)
name
- The variable name.java.lang.Object getContextVariable(java.lang.String name)
name
- The variable name.void setContextVariable(java.lang.String name, java.lang.Object value)
name
- The variable name.value
- The variable value.void setContextVariable(java.lang.String name, java.lang.Object key, java.lang.Object value)
name
- The variable name.value
- The variable value.IMonitoringEvent createThreadEvent(java.lang.String type, ProcessThread thread)
IMonitoringEvent createActivityEvent(java.lang.String type, ProcessThread thread, MActivity activity)
IActivityHandler getActivityHandler(MActivity activity)
actvity
- The activity.ProcessThread getTopLevelThread()
void step(MActivity activity, IInternalAccess instance, ProcessThread thread, java.lang.Object event)
activity
- The activity to execute.instance
- The process instance.thread
- The process thread.void notify(MActivity activity, ProcessThread thread, java.lang.Object event)
activity
- The timing event activity.instance
- The process instance.thread
- The process thread.event
- The event that has occurred, if any.boolean isReady()
pool
- The pool to be executed or null for any.lane
- The lane to be executed or null for any. Nested lanes may be addressed by dot-notation, e.g. 'OuterLane.InnerLane'.boolean isReady(java.lang.String pool, java.lang.String lane)
pool
- The pool to be executed or null for any.lane
- The lane to be executed or null for any. Nested lanes may be addressed by dot-notation, e.g. 'OuterLane.InnerLane'.boolean isFinished()
pool
- The pool to be executed or null for any.lane
- The lane to be executed or null for any. Nested lanes may be addressed by dot-notation, e.g. 'OuterLane.InnerLane'.boolean isFinished(java.lang.String pool, java.lang.String lane)
pool
- The pool to be executed or null for any.lane
- The lane to be executed or null for any. Nested lanes may be addressed by dot-notation, e.g. 'OuterLane.InnerLane'.java.util.List<java.lang.Object> getMessages()
java.util.List<IConnection> getStreams()