本文整理匯總了Java中org.activiti.engine.impl.cmd.SuspendProcessDefinitionCmd類的典型用法代碼示例。如果您正苦於以下問題:Java SuspendProcessDefinitionCmd類的具體用法?Java SuspendProcessDefinitionCmd怎麽用?Java SuspendProcessDefinitionCmd使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
SuspendProcessDefinitionCmd類屬於org.activiti.engine.impl.cmd包,在下文中一共展示了SuspendProcessDefinitionCmd類的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: execute
import org.activiti.engine.impl.cmd.SuspendProcessDefinitionCmd; //導入依賴的package包/類
@Override
public void execute(Job job, String configuration, ExecutionEntity execution, CommandContext commandContext) {
ProcessEngineConfigurationImpl processEngineConfiguration = commandContext.getProcessEngineConfiguration();
boolean suspendProcessInstances = false;
try {
JsonNode configNode = processEngineConfiguration.getObjectMapper().readTree(configuration);
suspendProcessInstances = getIncludeProcessInstances(configNode);
} catch (Exception e) {
throw new FlowableException("Error reading json value " + configuration, e);
}
String processDefinitionId = job.getProcessDefinitionId();
SuspendProcessDefinitionCmd suspendProcessDefinitionCmd = new SuspendProcessDefinitionCmd(processDefinitionId, null, suspendProcessInstances, null, job.getTenantId());
suspendProcessDefinitionCmd.execute(commandContext);
}
示例2: execute
import org.activiti.engine.impl.cmd.SuspendProcessDefinitionCmd; //導入依賴的package包/類
public void execute(JobEntity job, String configuration, ExecutionEntity execution, CommandContext commandContext) {
JSONObject cfgJson = new JSONObject(configuration);
String processDefinitionId = job.getProcessDefinitionId();
boolean suspendProcessInstances = getIncludeProcessInstances(cfgJson);
SuspendProcessDefinitionCmd suspendProcessDefinitionCmd =
new SuspendProcessDefinitionCmd(processDefinitionId, null, suspendProcessInstances, null);
suspendProcessDefinitionCmd.execute(commandContext);
}
示例3: suspendProcessDefinitionById
import org.activiti.engine.impl.cmd.SuspendProcessDefinitionCmd; //導入依賴的package包/類
@Override
public void suspendProcessDefinitionById(String processDefinitionId) {
commandExecutor.execute(new SuspendProcessDefinitionCmd(processDefinitionId, null, false, null, null));
}
示例4: suspendProcessDefinitionByKey
import org.activiti.engine.impl.cmd.SuspendProcessDefinitionCmd; //導入依賴的package包/類
@Override
public void suspendProcessDefinitionByKey(String processDefinitionKey) {
commandExecutor.execute(new SuspendProcessDefinitionCmd(null, processDefinitionKey, false, null, null));
}
示例5: suspendProcessDefinitionById
import org.activiti.engine.impl.cmd.SuspendProcessDefinitionCmd; //導入依賴的package包/類
public void suspendProcessDefinitionById(String processDefinitionId) {
commandExecutor.execute(new SuspendProcessDefinitionCmd(processDefinitionId, null));
}
示例6: suspendProcessDefinitionByKey
import org.activiti.engine.impl.cmd.SuspendProcessDefinitionCmd; //導入依賴的package包/類
public void suspendProcessDefinitionByKey(String processDefinitionKey) {
commandExecutor.execute(new SuspendProcessDefinitionCmd(null, processDefinitionKey));
}
示例7: suspendProcessDefinitionById
import org.activiti.engine.impl.cmd.SuspendProcessDefinitionCmd; //導入依賴的package包/類
public void suspendProcessDefinitionById(String processDefinitionId) {
commandExecutor.execute(new SuspendProcessDefinitionCmd(processDefinitionId, null, false, null));
}
示例8: suspendProcessDefinitionByKey
import org.activiti.engine.impl.cmd.SuspendProcessDefinitionCmd; //導入依賴的package包/類
public void suspendProcessDefinitionByKey(String processDefinitionKey) {
commandExecutor.execute(new SuspendProcessDefinitionCmd(null, processDefinitionKey, false, null));
}