Interface SubProcessActivityBehavior

All Superinterfaces:
ActivityBehavior, CoreActivityBehavior<ActivityExecution>
All Known Implementing Classes:
CallableElementActivityBehavior, CallActivityBehavior, CaseCallActivityBehavior

public interface SubProcessActivityBehavior extends ActivityBehavior
behavior for activities that delegate to a complete separate execution of a process definition. In BPMN terminology this can be used to implement a reusable subprocess.
Author:
Tom Baeyens
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called after the process instance is destroyed for this activity to perform its outgoing control flow logic.
    void
    passOutputVariables(ActivityExecution targetExecution, VariableScope calledElementInstance)
    Pass the output variables from the process instance of the subprocess to the given execution.

    Methods inherited from interface org.camunda.bpm.engine.impl.pvm.delegate.ActivityBehavior

    execute
  • Method Details

    • passOutputVariables

      void passOutputVariables(ActivityExecution targetExecution, VariableScope calledElementInstance)
      Pass the output variables from the process instance of the subprocess to the given execution. This should be called before the process instance is destroyed.
      Parameters:
      targetExecution - execution of the calling process instance to pass the variables to
      calledElementInstance - instance of the called element that serves as the variable source
    • completed

      void completed(ActivityExecution execution) throws Exception
      Called after the process instance is destroyed for this activity to perform its outgoing control flow logic.
      Parameters:
      execution -
      Throws:
      Exception