public ConditionSet(ConditionEvaluationBuilderImpl builder) { this.businessKey = builder.BusinessKey; this.processDefinitionId = builder.ProcessDefinitionId; this.variables = builder.getVariables(); this.tenantId = builder.TenantId; this.isTenantIdSet = builder.TenantIdSet; }
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); }