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

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


*/
public class CustomActivityBehaviorFactory extends DefaultActivityBehaviorFactory {

  @Override
  public NoneStartEventActivityBehavior createNoneStartEventActivityBehavior(StartEvent startEvent) {
    return new NoneStartEventActivityBehavior() {
      public void execute(ActivityExecution execution) throws Exception {
        super.execute(execution);
        CustomActivityBehaviorFactoryTest.COUNTER.addAndGet(1);
      }
    };
View Full Code Here


public class DefaultActivityBehaviorFactory extends AbstractBehaviorFactory implements ActivityBehaviorFactory {
 
  // Start event

  public NoneStartEventActivityBehavior createNoneStartEventActivityBehavior(StartEvent startEvent) {
    return new NoneStartEventActivityBehavior();
  }
View Full Code Here

    if (initiatorVariableName != null) {
      processDefinition.setProperty(PROPERTYNAME_INITIATOR_VARIABLE_NAME, initiatorVariableName);
    }

    // all start events share the same behavior:
    startEventActivity.setActivityBehavior(new NoneStartEventActivityBehavior());
   
    Element timerEventDefinition = startEventElement.element("timerEventDefinition");
    Element messageEventDefinition = startEventElement.element("messageEventDefinition");       
    if (timerEventDefinition != null) {
      parseTimerStartEventDefinition(timerEventDefinition, startEventActivity, processDefinition);
View Full Code Here

      if(signalEventDefinition != null) {
        addError("signalEventDefintion only allowed on start event if subprocess is an event subprocess", messageEventDefinition);
      }
      if (scope.getProperty(PROPERTYNAME_INITIAL) == null) {
        scope.setProperty(PROPERTYNAME_INITIAL, startEventActivity);
        startEventActivity.setActivityBehavior(new NoneStartEventActivityBehavior());
      } else {
        addError("multiple start events not supported for subprocess", startEventElement);
      }
    }
View Full Code Here

TOP

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

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.