public virtual void Suspend() { ValidateParameters(); var command = new SuspendProcessDefinitionCmd(this); CommandExecutor.Execute(command); }
public virtual void suspend() { validateParameters(); SuspendProcessDefinitionCmd command = new SuspendProcessDefinitionCmd(this); commandExecutor.execute(command); }
public override void Execute(IJobEntity job, string configuration, IExecutionEntity execution, ICommandContext commandContext) { JToken cfgJson = JToken.FromObject(configuration); string processDefinitionId = job.ProcessDefinitionId; bool suspendProcessInstances = GetIncludeProcessInstances(cfgJson); SuspendProcessDefinitionCmd suspendProcessDefinitionCmd = new SuspendProcessDefinitionCmd(processDefinitionId, null, suspendProcessInstances, null, job.TenantId); suspendProcessDefinitionCmd.Execute(commandContext); }