Exemplo n.º 1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public Void call() throws Exception
            public Void call()
            {
                UpdateJobDefinitionSuspensionStateBuilderImpl jobDefinitionSuspensionStateBuilder = outerInstance.createJobDefinitionCommandBuilder();
                AbstractSetJobDefinitionStateCmd jobDefinitionCmd = outerInstance.getSetJobDefinitionStateCmd(jobDefinitionSuspensionStateBuilder);

                jobDefinitionCmd.disableLogUserOperation();
                jobDefinitionCmd.execute(commandContext);
                return(null);
            }
Exemplo n.º 2
0
        protected internal virtual UpdateJobDefinitionSuspensionStateBuilderImpl createJobDefinitionCommandBuilder()
        {
            UpdateJobDefinitionSuspensionStateBuilderImpl jobDefinitionBuilder = new UpdateJobDefinitionSuspensionStateBuilderImpl();

            if (!string.ReferenceEquals(processDefinitionId, null))
            {
                jobDefinitionBuilder.byProcessDefinitionId(processDefinitionId);
            }
            else if (!string.ReferenceEquals(processDefinitionKey, null))
            {
                jobDefinitionBuilder.byProcessDefinitionKey(processDefinitionKey);

                if (isTenantIdSet && !string.ReferenceEquals(tenantId, null))
                {
                    jobDefinitionBuilder.processDefinitionTenantId(tenantId);
                }
                else if (isTenantIdSet)
                {
                    jobDefinitionBuilder.processDefinitionWithoutTenantId();
                }
            }
            return(jobDefinitionBuilder);
        }
Exemplo n.º 3
0
            public virtual UpdateJobDefinitionSuspensionStateBuilderImpl createBuilder()
            {
                UpdateJobDefinitionSuspensionStateBuilderImpl builder = new UpdateJobDefinitionSuspensionStateBuilderImpl();

                if (JOB_HANDLER_CFG_PROCESS_DEFINITION_ID.Equals(by))
                {
                    builder.byProcessDefinitionId(processDefinitionId);
                }
                else if (JOB_HANDLER_CFG_JOB_DEFINITION_ID.Equals(by))
                {
                    builder.byJobDefinitionId(jobDefinitionId);
                }
                else if (JOB_HANDLER_CFG_PROCESS_DEFINITION_KEY.Equals(by))
                {
                    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.includeJobs(includeJobs);

                return(builder);
            }
Exemplo n.º 4
0
 public ActivateJobDefinitionCmd(UpdateJobDefinitionSuspensionStateBuilderImpl builder) : base(builder)
 {
 }
Exemplo n.º 5
0
 protected internal override AbstractSetJobDefinitionStateCmd getSetJobDefinitionStateCmd(UpdateJobDefinitionSuspensionStateBuilderImpl jobDefinitionSuspensionStateBuilder)
 {
     return(new ActivateJobDefinitionCmd(jobDefinitionSuspensionStateBuilder));
 }
Exemplo n.º 6
0
 protected internal abstract AbstractSetJobDefinitionStateCmd createSetJobDefinitionStateCommand(UpdateJobDefinitionSuspensionStateBuilderImpl builder);
Exemplo n.º 7
0
 protected internal override AbstractSetJobDefinitionStateCmd createSetJobDefinitionStateCommand(UpdateJobDefinitionSuspensionStateBuilderImpl builder)
 {
     return(new SuspendJobDefinitionCmd(builder));
 }
Exemplo n.º 8
0
 /// <summary>
 /// Subclasses should return the type of the <seealso cref="AbstractSetJobDefinitionStateCmd"/> here.
 /// It will be used to suspend or activate the <seealso cref="JobDefinition"/>s. </summary>
 /// <param name="jobDefinitionSuspensionStateBuilder"> </param>
 protected internal abstract AbstractSetJobDefinitionStateCmd getSetJobDefinitionStateCmd(UpdateJobDefinitionSuspensionStateBuilderImpl jobDefinitionSuspensionStateBuilder);