modules/activiti-engine/src/main/java/org/activiti/engine/impl/bpmn/parser/BpmnParse.java
/**
   * Parses the start events of a certain level in the process (process,
   * subprocess or another scope).
   * 
   * @param parentElement
   *          The 'parent' element that contains the start events (process,
   *          subprocess).
   * @param scope
   *          The {@link ScopeImpl} to which the start events must be added.
   */
Parses the start events of a certain level in the process (process,
subprocess or another scope).

@param parentElement
The 'parent' element that contains the start events (process,
subprocess).
@param scope
The  ScopeImpl to which the start events must be added.
Parses the start events of a certain level in the process ( process subprocess or another scope ) . @param parentElement The ' parent ' element that contains the start events ( process subprocess ) . @param scope The ScopeImpl to which the start events must be added .
protected void createStartEvent(StartEvent startEvent, ScopeImpl scope, SubProcess subProcess) {
    ActivityImpl startEventActivity = createActivityOnScope(startEvent, ELEMENT_EVENT_START, scope);
    if (scope instanceof ProcessDefinitionEntity) {        
      createProcessDefinitionStartEvent(startEventActivity, startEvent, (ProcessDefinitionEntity) scope);
    } else {
      createScopeStartEvent(startEventActivity, startEvent, scope, subProcess);
    }
    for (BpmnParseListener parseListener : parseListeners) {
      parseListener.parseStartEvent(startEvent, scope, startEventActivity);
    }
    createExecutionListenersOnScope(startEvent.getExecutionListeners(), startEventActivity);      
    if(scope instanceof ProcessDefinitionEntity) {
      selectInitial(startEventActivity, startEvent, (ProcessDefinitionEntity) scope);
      createStartFormHandlers(startEvent, (ProcessDefinitionEntity) scope);
    }
  }
protected void createStartEvent ( StartEvent startEvent , ScopeImpl scope , SubProcess subProcess ) { ActivityImpl startEventActivity = createActivityOnScope ( startEvent , ELEMENT_EVENT_START , scope ) ; if ( scope instanceof ProcessDefinitionEntity ) { createProcessDefinitionStartEvent ( startEventActivity , startEvent , ( ProcessDefinitionEntity ) scope ) ; } else { createScopeStartEvent ( startEventActivity , startEvent , scope , subProcess ) ; } for ( BpmnParseListener parseListener : parseListeners ) { parseListener . parseStartEvent ( startEvent , scope , startEventActivity ) ; } createExecutionListenersOnScope ( startEvent . getExecutionListeners ( ) , startEventActivity ) ; if ( scope instanceof ProcessDefinitionEntity ) { selectInitial ( startEventActivity , startEvent , ( ProcessDefinitionEntity ) scope ) ; createStartFormHandlers ( startEvent , ( ProcessDefinitionEntity ) scope ) ; } }
Parses the start events of a certain level in the process (process,
 subprocess or another scope).
Parses the start events of a certain level in the process ( process subprocess or another scope ) .