Examples of CancelEndEventActivityBehavior


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

  public ErrorEndEventActivityBehavior createErrorEndEventActivityBehavior(EndEvent endEvent, ErrorEventDefinition errorEventDefinition) {
    return new ErrorEndEventActivityBehavior(errorEventDefinition.getErrorCode());
  }
 
  public CancelEndEventActivityBehavior createCancelEndEventActivityBehavior(EndEvent endEvent) {
    return new CancelEndEventActivityBehavior();
  }
View Full Code Here

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

      } else if (cancelEventDefinition != null) {
        if (scope.getProperty("type")==null || !scope.getProperty("type").equals("transaction")) {
          addError("end event with cancelEventDefinition only supported inside transaction subprocess", cancelEventDefinition);
        } else {
          activity.setProperty("type", "cancelEndEvent");  
          activity.setActivityBehavior(new CancelEndEventActivityBehavior());
        }
      } else if (terminateEventDefinition != null) {
        activity.setActivityBehavior(new TerminateEndEventActivityBehavior());
      } else { // default: none end event
        activity.setActivityBehavior(new NoneEndEventActivityBehavior());
View Full Code Here

Examples of org.camunda.bpm.engine.impl.bpmn.behavior.CancelEndEventActivityBehavior

      } else if (cancelEventDefinition != null) {
        if (scope.getProperty("type")==null || !scope.getProperty("type").equals("transaction")) {
          addError("end event with cancelEventDefinition only supported inside transaction subprocess", cancelEventDefinition);
        } else {
          activity.setProperty("type", "cancelEndEvent");
          activity.setActivityBehavior(new CancelEndEventActivityBehavior());
        }
      } else if (terminateEventDefinition != null) {
        activity.setProperty("type", "terminateEndEvent");
        activity.setActivityBehavior(new TerminateEndEventActivityBehavior());
        activity.setCancelScope(true);
View Full Code Here

Examples of org.camunda.bpm.engine.impl.bpmn.behavior.CancelEndEventActivityBehavior

      } else if (cancelEventDefinition != null) {
        if (scope.getProperty("type")==null || !scope.getProperty("type").equals("transaction")) {
          addError("end event with cancelEventDefinition only supported inside transaction subprocess", cancelEventDefinition);
        } else {
          activity.setProperty("type", "cancelEndEvent");
          activity.setActivityBehavior(new CancelEndEventActivityBehavior());
        }
      } else if (terminateEventDefinition != null) {
        activity.setProperty("type", "terminateEndEvent");
        activity.setActivityBehavior(new TerminateEndEventActivityBehavior());
        activity.setCancelScope(true);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.