示例#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);
        }