Package org.camunda.bpm.engine.impl.cmmn.behavior

Examples of org.camunda.bpm.engine.impl.cmmn.behavior.CmmnActivityBehavior


  protected String getEventName() {
    return MANUAL_START;
  }

  protected CmmnExecution eventNotificationsStarted(CmmnExecution execution) {
    CmmnActivityBehavior behavior = getActivityBehavior(execution);
    behavior.onManualStart(execution);

    execution.setCurrentState(ACTIVE);

    return execution;
  }
View Full Code Here


    return execution;
  }

  protected void transitionNotificationCompleted(CmmnExecution execution) {
    CmmnActivityBehavior behavior = getActivityBehavior(execution);
    behavior.started(execution);

  }
View Full Code Here

  protected String getEventName() {
    return TERMINATE;
  }

  protected void notifyParent(CmmnExecution parent, CmmnExecution execution) {
    CmmnActivityBehavior behavior = getActivityBehavior(parent);
    if (behavior instanceof CompositeActivityBehavior) {
      CompositeActivityBehavior compositeBehavior = (CompositeActivityBehavior) behavior;
      compositeBehavior.childStateChanged(parent, execution);
    }
  }
View Full Code Here

  protected String getEventName() {
    return CLOSE;
  }

  protected CmmnExecution eventNotificationsStarted(CmmnExecution execution) {
    CmmnActivityBehavior behavior = getActivityBehavior(execution);
    behavior.onClose(execution);

    execution.setCurrentState(CLOSED);

    return execution;
  }
View Full Code Here

  protected String getEventName() {
    return START;
  }

  protected CmmnExecution eventNotificationsStarted(CmmnExecution execution) {
    CmmnActivityBehavior behavior = getActivityBehavior(execution);
    behavior.onStart(execution);

    execution.setCurrentState(ACTIVE);

    return execution;
  }
View Full Code Here

    return execution;
  }

  protected void transitionNotificationCompleted(CmmnExecution execution) {
    CmmnActivityBehavior behavior = getActivityBehavior(execution);
    behavior.started(execution);
  }
View Full Code Here

  protected String getEventName() {
    return CREATE;
  }

  protected CmmnExecution eventNotificationsStarted(CmmnExecution execution) {
    CmmnActivityBehavior behavior = getActivityBehavior(execution);
    behavior.onCreate(execution);

    execution.setCurrentState(AVAILABLE);

    return execution;
  }
View Full Code Here

      newActivity = new CmmnActivity(id, caseDefinition);
    }

    newActivity.setCmmnElement(element);

    CmmnActivityBehavior behavior = getActivityBehavior();
    newActivity.setActivityBehavior(behavior);

    return newActivity;
  }
View Full Code Here

TOP

Related Classes of org.camunda.bpm.engine.impl.cmmn.behavior.CmmnActivityBehavior

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.