Examples of CmmnExecution


Examples of org.camunda.bpm.engine.impl.cmmn.execution.CmmnExecution

  protected void postTransitionNotification(CmmnExecution execution) {
    if (!execution.isCaseInstanceExecution()) {
      execution.remove();
    }

    CmmnExecution parent = execution.getParent();
    if (parent != null) {
      notifyParent(parent, execution);
    }
  }
View Full Code Here

Examples of org.camunda.bpm.engine.impl.cmmn.execution.CmmnExecution

    return execution;

  }

  protected void postTransitionNotification(CmmnExecution execution) {
    CmmnExecution parent = execution.getParent();
    if (parent != null) {
      notifyParent(parent, execution);
    }
  }
View Full Code Here

Examples of org.camunda.bpm.engine.impl.cmmn.execution.CmmnExecution

  protected void postTransitionNotification(CmmnExecution execution) {
    if (!execution.isCaseInstanceExecution()) {
      execution.remove();
    } else {
      CmmnExecution superCaseExecution = execution.getSuperCaseExecution();
      TransferVariablesActivityBehavior behavior = null;

      if (superCaseExecution != null) {
        behavior = (TransferVariablesActivityBehavior) getActivityBehavior(superCaseExecution);
        behavior.transferVariables(execution, superCaseExecution);
        superCaseExecution.complete();
      }
    }

    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.execution.CmmnExecution

    return execution;
  }

  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.execution.CmmnExecution

  }

  protected void performTransitionNotification(CmmnExecution execution) {
    String eventName = getEventName();

    CmmnExecution parent = execution.getParent();

    if (parent != null) {
      parent.handleChildTransition(execution, eventName);
    }
  }
View Full Code Here

Examples of org.camunda.bpm.engine.impl.cmmn.execution.CmmnExecution

  }

  public CmmnCaseInstance createCaseInstance(String businessKey) {

    // create a new case instance
    CmmnExecution caseInstance = newCaseInstance();

    // set the definition...
    caseInstance.setCaseDefinition(this);
    // ... and the case instance (identity)
    caseInstance.setCaseInstance(caseInstance);

    // set the business key
    caseInstance.setBusinessKey(businessKey);

    // get the case plan model as "initial" activity
    CmmnActivity casePlanModel = getActivities().get(0);


    // set the case plan model activity
    caseInstance.setActivity(casePlanModel);

    return caseInstance;
  }
View Full Code Here

Examples of org.camunda.bpm.engine.impl.cmmn.execution.CmmnExecution

   }
   return execution;
}

  public void execute(CmmnExecution execution) {
    CmmnExecution firstLeaf = findFirstLeaf(execution);

    firstLeaf.remove();

    CmmnExecution parent = firstLeaf.getParent();
    if (parent != null) {
      parent.deleteCascade();
    }
  }
View Full Code Here

Examples of org.camunda.bpm.engine.impl.cmmn.execution.CmmnExecution

    // set create user id
    evt.setCreateUserId(Context.getCommandContext().getAuthenticatedUserId());

    // set super case instance id
    CmmnExecution superCaseExecution = caseExecutionEntity.getSuperCaseExecution();
    if (superCaseExecution != null) {
      evt.setSuperCaseInstanceId(superCaseExecution.getCaseInstanceId());
    }

    return evt;
  }
View Full Code Here

Examples of org.camunda.bpm.engine.impl.cmmn.execution.CmmnExecution

public abstract class ProcessOrCaseTaskActivityBehavior extends TaskActivityBehavior implements TransferVariablesActivityBehavior {

  protected CallableElement callableElement;

  protected void performStart(CmmnActivityExecution execution) {
    CmmnExecution caseExecution = (CmmnExecution) execution;

    List<CallableElementParameter> inputs = callableElement.getInputs();
    Map<String, Object> variables = getVariables(inputs, caseExecution);

    String businessKey = callableElement.getBusinessKey(caseExecution);

    triggerCallableElement(caseExecution, variables, businessKey);

    if (caseExecution.isActive() && !isBlocking(caseExecution)) {
      caseExecution.complete();
    }

  }
View Full Code Here

Examples of org.camunda.bpm.engine.impl.cmmn.execution.CmmnExecution

  public void setCallableElement(CallableElement callableElement) {
    this.callableElement = callableElement;
  }

  protected String getDefinitionKey(CmmnActivityExecution execution) {
    CmmnExecution caseExecution = (CmmnExecution) execution;
    return getCallableElement().getDefinitionKey(caseExecution);
  }
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.