Interface IInternalBpmnComponentFeature

All Known Subinterfaces:
IBpmnComponentFeature
All Known Implementing Classes:
BpmnProcessFeature

public interface IInternalBpmnComponentFeature
  • Field Details

  • Method Details

    • get

    • init

      void init()
    • terminate

      void terminate()
    • hasContextVariable

      boolean hasContextVariable(String name)
      Test if the given context variable is declared.
      Parameters:
      name - The variable name.
      Returns:
      True, if the variable is declared.
    • getContextVariable

      Object getContextVariable(String name)
      Get the value of the given context variable.
      Parameters:
      name - The variable name.
      Returns:
      The variable value.
    • setContextVariable

      void setContextVariable(String name, Object value)
      Set the value of the given context variable.
      Parameters:
      name - The variable name.
      value - The variable value.
    • setContextVariable

      void setContextVariable(String name, Object key, Object value)
      Set the value of the given context variable.
      Parameters:
      name - The variable name.
      value - The variable value.
    • getActivityHandler

      IActivityHandler getActivityHandler(MActivity activity)
      Get the activity handler for an activity.
      Parameters:
      actvity - The activity.
      Returns:
      The activity handler.
    • getActivityHandler

      IActivityHandler getActivityHandler(String type)
      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

      void step(MActivity activity, jadex.core.IComponent instance, ProcessThread thread, 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.
    • notify

      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. 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

      boolean isReady(String pool, 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'.
    • 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

      boolean isFinished(String pool, 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.
    • getMessages

      List<Object> getMessages()
      Get the messages.
      Returns:
      The messages