Package jadex.bpmn.features
Interface IInternalBpmnComponentFeature
- 
 public interface IInternalBpmnComponentFeature
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringTYPE_ACTIVITYConstant for step event.static java.lang.StringTYPE_THREADThe change event prefix denoting a thread event.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description IMonitoringEventcreateActivityEvent(java.lang.String type, ProcessThread thread, MActivity activity)Create an activity event (start, end).IMonitoringEventcreateThreadEvent(java.lang.String type, ProcessThread thread)Create a thread event (creation, modification, termination).IActivityHandlergetActivityHandler(MActivity activity)Get the activity handler for an activity.java.lang.ObjectgetContextVariable(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.ProcessThreadgetTopLevelThread()Get the top level thread (is not executed and just acts as top level thread container).booleanhasContextVariable(java.lang.String name)Test if the given context variable is declared.booleanisFinished()Check, if the process has terminated.booleanisFinished(java.lang.String pool, java.lang.String lane)Check, if the process has terminated.booleanisReady()Check if the process is ready, i.e.booleanisReady(java.lang.String pool, java.lang.String lane)Check if the process is ready, i.e.voidnotify(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.voidsetContextVariable(java.lang.String name, java.lang.Object value)Set the value of the given context variable.voidsetContextVariable(java.lang.String name, java.lang.Object key, java.lang.Object value)Set the value of the given context variable.voidstep(MActivity activity, IInternalAccess instance, ProcessThread thread, java.lang.Object event)Make a process step, i.e.
 
- 
- 
- 
Field Detail- 
TYPE_ACTIVITYstatic final java.lang.String TYPE_ACTIVITY Constant for step event.- See Also:
- Constant Field Values
 
 - 
TYPE_THREADstatic final java.lang.String TYPE_THREAD The change event prefix denoting a thread event.- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
hasContextVariableboolean hasContextVariable(java.lang.String name) Test if the given context variable is declared.- Parameters:
- name- The variable name.
- Returns:
- True, if the variable is declared.
 
 - 
getContextVariablejava.lang.Object getContextVariable(java.lang.String name) Get the value of the given context variable.- Parameters:
- name- The variable name.
- Returns:
- The variable value.
 
 - 
setContextVariablevoid setContextVariable(java.lang.String name, java.lang.Object value)Set the value of the given context variable.- Parameters:
- name- The variable name.
- value- The variable value.
 
 - 
setContextVariablevoid setContextVariable(java.lang.String name, java.lang.Object key, java.lang.Object value)Set the value of the given context variable.- Parameters:
- name- The variable name.
- value- The variable value.
 
 - 
createThreadEventIMonitoringEvent createThreadEvent(java.lang.String type, ProcessThread thread) Create a thread event (creation, modification, termination).
 - 
createActivityEventIMonitoringEvent createActivityEvent(java.lang.String type, ProcessThread thread, MActivity activity) Create an activity event (start, end).
 - 
getActivityHandlerIActivityHandler getActivityHandler(MActivity activity) Get the activity handler for an activity.- Parameters:
- actvity- The activity.
- Returns:
- The activity handler.
 
 - 
getTopLevelThreadProcessThread getTopLevelThread() Get the top level thread (is not executed and just acts as top level thread container).
 - 
stepvoid step(MActivity activity, IInternalAccess instance, ProcessThread thread, java.lang.Object event) Make a process step, i.e. find the next edge or activity for a just executed thread.- Parameters:
- activity- The activity to execute.
- instance- The process instance.
- thread- The process thread.
 
 - 
notifyvoid 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. Can safely be called from external threads.- Parameters:
- activity- The timing event activity.
- instance- The process instance.
- thread- The process thread.
- event- The event that has occurred, if any.
 
 - 
isReadyboolean isReady() Check if the process is ready, i.e. if at least one process thread can currently execute a step.- Parameters:
- 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'.
 
 - 
isReadyboolean isReady(java.lang.String pool, java.lang.String lane)Check if the process is ready, i.e. if at least one process thread can currently execute a step.- Parameters:
- 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'.
 
 - 
isFinishedboolean isFinished() Check, if the process has terminated.- Parameters:
- 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'.
- Returns:
- True, when the process instance is finished with regards to the specified pool/lane. When both pool and lane are null, true is returned only when all pools/lanes are finished.
 
 - 
isFinishedboolean isFinished(java.lang.String pool, java.lang.String lane)Check, if the process has terminated.- Parameters:
- 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'.
- Returns:
- True, when the process instance is finished with regards to the specified pool/lane. When both pool and lane are null, true is returned only when all pools/lanes are finished.
 
 - 
getMessagesjava.util.List<java.lang.Object> getMessages() Get the messages.- Returns:
- The messages
 
 - 
getStreamsjava.util.List<IConnection> getStreams() Get the streams.- Returns:
- The streams
 
 
- 
 
-