Package org.camunda.bpm.engine.impl.persistence.entity

Examples of org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.start()


  protected void instantiateProcess(CommandContext commandContext, MessageCorrelationResult correlationResult) {
    ProcessDefinitionEntity processDefinitionEntity = correlationResult.getProcessDefinitionEntity();
    ActivityImpl messageStartEvent = processDefinitionEntity.findActivity(correlationResult.getStartEventActivityId());
    ExecutionEntity processInstance = processDefinitionEntity.createProcessInstance(businessKey, messageStartEvent);
    processInstance.start(processVariables);
  }

}
View Full Code Here


    if (processVariables != null) {
      processInstance.setVariables(processVariables);
    }

    processInstance.start();

    return processInstance;
  }

}
View Full Code Here

      throw new ProcessEngineException("processDefinitionKey and processDefinitionId are null");
    }

    // Start the process instance
    ExecutionEntity processInstance = processDefinition.createProcessInstance(businessKey, caseInstanceId);
    processInstance.start(variables);
    return processInstance;
  }
}
View Full Code Here

    // if the start event is async, we have to set the variables already here
    // since they are lost after the async continuation otherwise
    // see CAM-2828
    if (processDefinition.getInitial().isAsyncBefore()) {
      FormPropertyHelper.initFormPropertiesOnScope(variables, processInstance);
      processInstance.start();

    } else {
      processInstance.startWithFormProperties(variables);

    }
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.