コード例 #1
0
            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);
            }
コード例 #2
0
        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;
        }
コード例 #3
0
            protected internal virtual SuspendProcessDefinitionCmd createSuspendCommand()
            {
                UpdateProcessDefinitionSuspensionStateBuilderImpl builder = (new UpdateProcessDefinitionSuspensionStateBuilderImpl()).byProcessDefinitionId(processDefinitionId).includeProcessInstances(true);

                return(new SuspendProcessDefinitionCmd(builder));
            }
コード例 #4
0
 public ActivateProcessDefinitionCmd(UpdateProcessDefinitionSuspensionStateBuilderImpl builder) : base(builder)
 {
 }