///<inheritdoc /> public StartProcessInstanceByMessageCmd(ProcessInstanceBuilderImpl processInstanceBuilder) { this.messageName = processInstanceBuilder.MessageName; this.businessKey = processInstanceBuilder.BusinessKey; this.processVariables = processInstanceBuilder.Variables; this.transientVariables = processInstanceBuilder.TransientVariables; this.tenantId = processInstanceBuilder.TenantId; }
public virtual IProcessInstance StartProcessInstance(ProcessInstanceBuilderImpl processInstanceBuilder) { if (processInstanceBuilder.ProcessDefinitionId is object || processInstanceBuilder.ProcessDefinitionKey is object) { return(commandExecutor.Execute(new StartProcessInstanceCmd(processInstanceBuilder))); } else if (processInstanceBuilder.MessageName is object) { return(commandExecutor.Execute(new StartProcessInstanceByMessageCmd(processInstanceBuilder))); } else { throw new ActivitiIllegalArgumentException("No processDefinitionId, processDefinitionKey nor messageName provided"); } }
public virtual IProcessInstance StartProcessInstance(ProcessInstanceBuilderImpl processInstanceBuilder) { if (!(processInstanceBuilder.ProcessDefinitionId is null) || !(processInstanceBuilder.ProcessDefinitionKey is null)) { return(commandExecutor.Execute(new StartProcessInstanceCmd(processInstanceBuilder))); }
public StartProcessInstanceCmd(ProcessInstanceBuilderImpl processInstanceBuilder) : this(processInstanceBuilder.ProcessDefinitionKey, processInstanceBuilder.ProcessDefinitionId, processInstanceBuilder.BusinessKey, processInstanceBuilder.Variables, processInstanceBuilder.TenantId) { this.processInstanceName = processInstanceBuilder.ProcessInstanceName; this.transientVariables = processInstanceBuilder.TransientVariables; this.initialFlowElementId = processInstanceBuilder.InitialFlowElementId; }