Examples of CmmnActivityBehavior


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

      notifyParent(parent, execution);
    }
  }

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

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

      notifyParent(parent, execution);
    }
  }

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

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

  protected String getEventName() {
    return COMPLETE;
  }

  protected CmmnExecution eventNotificationsStarted(CmmnExecution execution) {
    CmmnActivityBehavior behavior = getActivityBehavior(execution);
    triggerBehavior(behavior, execution);

    List<? extends CmmnExecution> children = execution.getCaseExecutions();
    if (children != null && !children.isEmpty()) {
      for (CmmnExecution child : children) {
View Full Code Here

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

      }
    }

    CmmnExecution parent = execution.getParent();
    if (parent != null) {
      CmmnActivityBehavior behavior = getActivityBehavior(parent);
      if (behavior instanceof CompositeActivityBehavior) {
        CompositeActivityBehavior compositeBehavior = (CompositeActivityBehavior) behavior;
        compositeBehavior.handleChildCompletion(parent, execution);
      }
    }
View Full Code Here

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

  }

  protected void postTransitionNotification(CmmnExecution execution) {
    // the case instance is associated with the
    // casePlanModel as activity
    CmmnActivityBehavior behavior = getActivityBehavior(execution);

    // perform start() on associated behavior
    // because the case instance is ACTIVE
    behavior.started(execution);
  }
View Full Code Here

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

*
*/
public abstract class AbstractAtomicOperationCaseExecutionResume extends AbstractCmmnEventAtomicOperation {

  protected CmmnExecution eventNotificationsStarted(CmmnExecution execution) {
    CmmnActivityBehavior behavior = getActivityBehavior(execution);
    triggerBehavior(behavior, execution);

    CaseExecutionState newState = getPreviousState(execution);
    execution.setCurrentState(newState);

View Full Code Here

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

    return execution;
  }

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

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

  protected String getEventName() {
    return DISABLE;
  }

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

    execution.setCurrentState(DISABLED);

    return execution;
  }
View Full Code Here

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

  }

  protected void preTransitionNotification(CmmnExecution execution) {
    CmmnExecution parent = execution.getParent();
    if (parent != null) {
      CmmnActivityBehavior behavior = getActivityBehavior(parent);
      if (behavior instanceof CompositeActivityBehavior) {
        CompositeActivityBehavior compositeBehavior = (CompositeActivityBehavior) behavior;
        compositeBehavior.handleChildDisabled(parent, execution);
      }
    }
View Full Code Here

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

  public String getCanonicalName() {
    return "trigger-entry-criteria";
  }

  public void execute(CmmnExecution execution) {
    CmmnActivityBehavior behavior = getActivityBehavior(execution);
    behavior.fireEntryCriteria(execution);
  }
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.