public AbstractSetJobDefinitionStateCmd(IUpdateJobDefinitionSuspensionStateBuilder builder) : base(builder.IncludeJobs, builder.GetExecutionDate()) { JobDefinitionId = builder.JobDefinitionId; ProcessDefinitionId = builder.ProcessDefinitionId; ProcessDefinitionKey = builder.ProcessDefinitionKey; IsProcessDefinitionTenantIdSet = builder.ProcessDefinitionTenantIdSet; ProcessDefinitionTenantId = builder.ProcessDefinitionTenantId; }
// Todo: ControllableThread //public override void run() //{ // try // { // outerInstance.processEngineConfiguration.CommandExecutorTxRequired.Execute(new ControlledICommand<object>(activeThread, createSuspendJobCommand())); // } // catch (OptimisticLockingException e) // { // this.exception = e; // } // Debug.WriteLine(TestContext.CurrentContext.Test.Name + " ends"); //} protected internal virtual ICommand <object> createSuspendJobCommand() { IUpdateJobDefinitionSuspensionStateBuilder builder = (new UpdateJobDefinitionSuspensionStateBuilderImpl()).ByProcessDefinitionKey(processDefinitionKey);//.IncludeJobs(true); return(new SuspendJobDefinitionCmd(builder)); }
public SuspendJobDefinitionCmd(IUpdateJobDefinitionSuspensionStateBuilder builder) : base(builder) { }