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

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


  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();
View Full Code Here


    PvmExecutionImpl superExecution = execution.getSuperExecution();
    CmmnActivityExecution superCaseExecution = execution.getSuperCaseExecution();

    SubProcessActivityBehavior subProcessActivityBehavior = null;
    TransferVariablesActivityBehavior transferVariablesBehavior = null;

    // copy variables before destroying the ended sub process instance
    if (superExecution!=null) {
      ActivityImpl activity = superExecution.getActivity();
      subProcessActivityBehavior = (SubProcessActivityBehavior) activity.getActivityBehavior();
      try {
        subProcessActivityBehavior.completing(superExecution, execution);
      } catch (RuntimeException e) {
          log.log(Level.SEVERE, "Error while completing sub process of execution " + execution, e);
          throw e;
      } catch (Exception e) {
          log.log(Level.SEVERE, "Error while completing sub process of execution " + execution, e);
          throw new ProcessEngineException("Error while completing sub process of execution " + execution, e);
      }
    } else if (superCaseExecution != null) {
      CmmnActivity activity = superCaseExecution.getActivity();
      transferVariablesBehavior = (TransferVariablesActivityBehavior) activity.getActivityBehavior();
      try {
        transferVariablesBehavior.transferVariables(execution, superCaseExecution);
      } catch (RuntimeException e) {
          log.log(Level.SEVERE, "Error while completing sub process of execution " + execution, e);
          throw e;
      } catch (Exception e) {
          log.log(Level.SEVERE, "Error while completing sub process of execution " + execution, e);
View Full Code Here

  protected void transitionNotificationCompleted(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();
View Full Code Here

TOP

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

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.