Package jadex.bpmn.runtime.impl
Interface IInternalBpmnComponentFeature
- All Known Subinterfaces:
IBpmnComponentFeature
- All Known Implementing Classes:
BpmnProcessFeature
public interface IInternalBpmnComponentFeature
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionget()
getActivityHandler
(MActivity activity) Get the activity handler for an activity.getActivityHandler
(String type) Get the activity handler for an activity.getContextVariable
(String name) Get the value of the given context variable.Get the messages.Get the top level thread (is not executed and just acts as top level thread container).boolean
hasContextVariable
(String name) Test if the given context variable is declared.void
init()
boolean
Check, if the process has terminated.boolean
isFinished
(String pool, String lane) Check, if the process has terminated.boolean
isReady()
Check if the process is ready, i.e.boolean
Check if the process is ready, i.e.void
notify
(MActivity activity, ProcessThread thread, Object event) Method that should be called, when an activity is finished and the following activity should be scheduled.void
setContextVariable
(String name, Object value) Set the value of the given context variable.void
setContextVariable
(String name, Object key, Object value) Set the value of the given context variable.void
step
(MActivity activity, jadex.core.IComponent instance, ProcessThread thread, Object event) Make a process step, i.e.void
-
Field Details
-
TYPE_ACTIVITY
Constant for step event.- See Also:
-
TYPE_THREAD
The change event prefix denoting a thread event.- See Also:
-
-
Method Details
-
get
-
init
void init() -
terminate
void terminate() -
hasContextVariable
Test if the given context variable is declared.- Parameters:
name
- The variable name.- Returns:
- True, if the variable is declared.
-
getContextVariable
Get the value of the given context variable.- Parameters:
name
- The variable name.- Returns:
- The variable value.
-
setContextVariable
Set the value of the given context variable.- Parameters:
name
- The variable name.value
- The variable value.
-
setContextVariable
Set the value of the given context variable.- Parameters:
name
- The variable name.value
- The variable value.
-
getActivityHandler
Get the activity handler for an activity.- Parameters:
actvity
- The activity.- Returns:
- The activity handler.
-
getActivityHandler
Get the activity handler for an activity.- Parameters:
type
- The activity type.- Returns:
- The activity handler.
-
getTopLevelThread
ProcessThread getTopLevelThread()Get the top level thread (is not executed and just acts as top level thread container). -
step
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.
-
notify
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.thread
- The process thread.event
- The event that has occurred, if any.instance
- The process instance.
-
isReady
boolean 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'.
-
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'.
-
isFinished
boolean 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.
-
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.
-
getMessages
Get the messages.- Returns:
- The messages
-