Interface PvmActivity

All Superinterfaces:
PvmProcessElement, PvmScope, Serializable
All Known Implementing Classes:
ActivityImpl

public interface PvmActivity extends PvmScope
Defines an activity insisde a process. Note that the term "activity" is meant to be understood in a broader sense than in BPMN: everything inside a process which can have incoming or outgoing sequence flows (transitions) are activities. Examples: events, tasks, gateways, subprocesses ...
Author:
Tom Baeyens, Daniel Meyer
  • Method Details

    • getActivityBehavior

      ActivityBehavior getActivityBehavior()
      The inner behavior of an activity. The inner behavior is the logic which is executed after the start listeners have been executed. In case the activity is scope, a new execution will be created
      Returns:
      the inner behavior of the activity
    • getActivityStartBehavior

      ActivityStartBehavior getActivityStartBehavior()
      The start behavior of an activity. The start behavior is executed before the start listeners of the activity are executed.
      Returns:
      the start behavior of an activity.
    • findOutgoingTransition

      PvmTransition findOutgoingTransition(String transitionId)
      Finds and returns an outgoing sequence flow (transition) by it's id.
      Parameters:
      transitionId - the id of the transition to find
      Returns:
      the transition or null in case it cannot be found
    • getOutgoingTransitions

      List<PvmTransition> getOutgoingTransitions()
      Returns:
      the list of outgoing sequence flows (transitions)
    • getIncomingTransitions

      List<PvmTransition> getIncomingTransitions()
      Returns:
      the list of incoming sequence flows (transitions)
    • isAsyncBefore

      boolean isAsyncBefore()
      Indicates whether the activity is executed asynchronously. This can be done after the activity start behavior and before the start listeners are invoked.
      Returns:
      true if the activity is executed asynchronously.
    • isAsyncAfter

      boolean isAsyncAfter()
      Indicates whether execution after this execution should continue asynchronously. This can be done after the end listeners are invoked.
      Returns:
      true if execution after this activity continues asynchronously.