Package org.activiti.engine.impl.bpmn.behavior

Examples of org.activiti.engine.impl.bpmn.behavior.EventSubProcessStartEventActivityBehavior


    boolean isTriggeredByEvent = triggeredByEvent != null && ((Boolean) triggeredByEvent == true);
   
    if (isTriggeredByEvent) { // event subprocess
     
      // all start events of an event subprocess share common behavior
      EventSubProcessStartEventActivityBehavior activityBehavior =
              bpmnParse.getActivityBehaviorFactory().createEventSubProcessStartEventActivityBehavior(startEvent, startEventActivity.getId());
      startEventActivity.setActivityBehavior(activityBehavior);
     
      if (!startEvent.getEventDefinitions().isEmpty()) {
        EventDefinition eventDefinition = startEvent.getEventDefinitions().get(0);
View Full Code Here


  public NoneStartEventActivityBehavior createNoneStartEventActivityBehavior(StartEvent startEvent) {
    return new NoneStartEventActivityBehavior();
  }

  public EventSubProcessStartEventActivityBehavior createEventSubProcessStartEventActivityBehavior(StartEvent startEvent, String activityId) {
    return new EventSubProcessStartEventActivityBehavior(activityId);
  }
View Full Code Here

    Element signalEventDefinition = startEventElement.element("signalEventDefinition");
   
    if (isTriggeredByEvent) { // event subprocess
     
      // all start events of an event subprocess share common behavior
      EventSubProcessStartEventActivityBehavior activityBehavior = new EventSubProcessStartEventActivityBehavior(startEventActivity.getId());
      startEventActivity.setActivityBehavior(activityBehavior);
     
      String isInterrupting = startEventElement.attribute("isInterrupting");
      if(isInterrupting != null && (isInterrupting.equals("false")||isInterrupting.equals("FALSE"))) {
        activityBehavior.setInterrupting(false);
      }
     
      // the scope of the event subscription is the parent of the event
      // subprocess (subscription must be created when parent is initialized)
      ScopeImpl catchingScope = ((ActivityImpl) scope).getParent();
     
      if (errorEventDefinition != null) {
        if(!activityBehavior.isInterrupting()) {
          addError("error start event of event subprocess must be interrupting", startEventElement);
        }
        if (scope.getProperty(PROPERTYNAME_INITIAL) == null) {
            scope.setProperty(PROPERTYNAME_INITIAL, startEventActivity);
            parseErrorStartEventDefinition(errorEventDefinition, startEventActivity, catchingScope);
View Full Code Here

TOP

Related Classes of org.activiti.engine.impl.bpmn.behavior.EventSubProcessStartEventActivityBehavior

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.