public virtual void Suspend()
        {
            ValidateParameters();

            var command = new SuspendProcessDefinitionCmd(this);

            CommandExecutor.Execute(command);
        }
Exemple #2
0
        public virtual void suspend()
        {
            validateParameters();

            SuspendProcessDefinitionCmd command = new SuspendProcessDefinitionCmd(this);

            commandExecutor.execute(command);
        }
Exemple #3
0
        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);
        }