modules/activiti-engine/src/main/java/org/activiti/engine/impl/bpmn/parser/BpmnParse.java
/**
   * Parses a call activity (currently only supporting calling subprocesses).
   * 
   * @param callActivityElement
   *          The XML element defining the call activity
   * @param scope
   *          The current scope on which the call activity is defined.
   */
Parses a call activity (currently only supporting calling subprocesses).

@param callActivityElement
The XML element defining the call activity
@param scope
The current scope on which the call activity is defined.
Parses a call activity ( currently only supporting calling subprocesses ) . @param callActivityElement The XML element defining the call activity @param scope The current scope on which the call activity is defined .
public ActivityImpl createCallActivity(CallActivity callActivity, ScopeImpl scope) {
    ActivityImpl activity = createActivityOnScope(callActivity, ELEMENT_CALL_ACTIVITY, scope);
    activity.setScope(true);
    activity.setActivityBehavior(activityBehaviorFactory.createCallActivityBehavior(callActivity));
    createExecutionListenersOnScope(callActivity.getExecutionListeners(), activity);
    for (BpmnParseListener parseListener : parseListeners) {
      parseListener.parseCallActivity(callActivity, scope, activity);
    }
    return activity;
  }
public ActivityImpl createCallActivity ( CallActivity callActivity , ScopeImpl scope ) { ActivityImpl activity = createActivityOnScope ( callActivity , ELEMENT_CALL_ACTIVITY , scope ) ; activity . setScope ( true ) ; activity . setActivityBehavior ( activityBehaviorFactory . createCallActivityBehavior ( callActivity ) ) ; createExecutionListenersOnScope ( callActivity . getExecutionListeners ( ) , activity ) ; for ( BpmnParseListener parseListener : parseListeners ) { parseListener . parseCallActivity ( callActivity , scope , activity ) ; } return activity ; }
Parses a call activity (currently only supporting calling subprocesses).
Parses a call activity ( currently only supporting calling subprocesses ) .