public virtual UpdateProcessDefinitionSuspensionStateBuilderImpl createBuilder() { UpdateProcessDefinitionSuspensionStateBuilderImpl builder = new UpdateProcessDefinitionSuspensionStateBuilderImpl(); if (by.Equals(JOB_HANDLER_CFG_PROCESS_DEFINITION_ID)) { builder.byProcessDefinitionId(processDefinitionId); } else if (by.Equals(JOB_HANDLER_CFG_PROCESS_DEFINITION_KEY)) { builder.byProcessDefinitionKey(processDefinitionKey); if (isTenantIdSet) { if (!string.ReferenceEquals(tenantId, null)) { builder.processDefinitionTenantId(tenantId); } else { builder.processDefinitionWithoutTenantId(); } } } else { throw new ProcessEngineException("Unexpected job handler configuration for property '" + JOB_HANDLER_CFG_BY + "': " + by); } builder.includeProcessInstances(includeProcessInstances); return(builder); }
public AbstractSetProcessDefinitionStateCmd(UpdateProcessDefinitionSuspensionStateBuilderImpl builder) : base(builder.IncludeProcessInstances, builder.ExecutionDate) { this.processDefinitionId = builder.ProcessDefinitionId; this.processDefinitionKey = builder.ProcessDefinitionKey; this.isTenantIdSet = builder.TenantIdSet; this.tenantId = builder.ProcessDefinitionTenantId; }
protected internal virtual SuspendProcessDefinitionCmd createSuspendCommand() { UpdateProcessDefinitionSuspensionStateBuilderImpl builder = (new UpdateProcessDefinitionSuspensionStateBuilderImpl()).byProcessDefinitionId(processDefinitionId).includeProcessInstances(true); return(new SuspendProcessDefinitionCmd(builder)); }
public ActivateProcessDefinitionCmd(UpdateProcessDefinitionSuspensionStateBuilderImpl builder) : base(builder) { }