예제 #1
0
 public ConditionSet(ConditionEvaluationBuilderImpl builder)
 {
     this.businessKey         = builder.BusinessKey;
     this.processDefinitionId = builder.ProcessDefinitionId;
     this.variables           = builder.getVariables();
     this.tenantId            = builder.TenantId;
     this.isTenantIdSet       = builder.TenantIdSet;
 }
예제 #2
0
        protected internal virtual ProcessInstance instantiateProcess(CommandContext commandContext, ConditionHandlerResult result)
        {
            ProcessDefinitionEntity processDefinitionEntity = result.ProcessDefinition;

            ActivityImpl    startEvent      = processDefinitionEntity.findActivity(result.Activity.ActivityId);
            ExecutionEntity processInstance = processDefinitionEntity.createProcessInstance(builder.BusinessKey, startEvent);

            processInstance.start(builder.getVariables());

            return(processInstance);
        }