コード例 #1
0
 ///<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;
 }
コード例 #2
0
 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");
     }
 }
コード例 #3
0
 public virtual IProcessInstance StartProcessInstance(ProcessInstanceBuilderImpl processInstanceBuilder)
 {
     if (!(processInstanceBuilder.ProcessDefinitionId is null) || !(processInstanceBuilder.ProcessDefinitionKey is null))
     {
         return(commandExecutor.Execute(new StartProcessInstanceCmd(processInstanceBuilder)));
     }
コード例 #4
0
 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;
 }