當前位置: 首頁>>代碼示例>>Java>>正文


Java SuspendProcessDefinitionCmd類代碼示例

本文整理匯總了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);
}
 
開發者ID:flowable,項目名稱:flowable-engine,代碼行數:18,代碼來源:TimerSuspendProcessDefinitionHandler.java

示例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);
}
 
開發者ID:springvelocity,項目名稱:xbpm5,代碼行數:10,代碼來源:TimerSuspendProcessDefinitionHandler.java

示例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));
}
 
開發者ID:flowable,項目名稱:flowable-engine,代碼行數:5,代碼來源:RepositoryServiceImpl.java

示例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));
}
 
開發者ID:flowable,項目名稱:flowable-engine,代碼行數:5,代碼來源:RepositoryServiceImpl.java

示例5: suspendProcessDefinitionById

import org.activiti.engine.impl.cmd.SuspendProcessDefinitionCmd; //導入依賴的package包/類
public void suspendProcessDefinitionById(String processDefinitionId) {
  commandExecutor.execute(new SuspendProcessDefinitionCmd(processDefinitionId, null));
}
 
開發者ID:iotsap,項目名稱:FiWare-Template-Handler,代碼行數:4,代碼來源:RepositoryServiceImpl.java

示例6: suspendProcessDefinitionByKey

import org.activiti.engine.impl.cmd.SuspendProcessDefinitionCmd; //導入依賴的package包/類
public void suspendProcessDefinitionByKey(String processDefinitionKey) {
  commandExecutor.execute(new SuspendProcessDefinitionCmd(null, processDefinitionKey));
}
 
開發者ID:iotsap,項目名稱:FiWare-Template-Handler,代碼行數:4,代碼來源:RepositoryServiceImpl.java

示例7: suspendProcessDefinitionById

import org.activiti.engine.impl.cmd.SuspendProcessDefinitionCmd; //導入依賴的package包/類
public void suspendProcessDefinitionById(String processDefinitionId) {
  commandExecutor.execute(new SuspendProcessDefinitionCmd(processDefinitionId, null, false, null));
}
 
開發者ID:springvelocity,項目名稱:xbpm5,代碼行數:4,代碼來源:RepositoryServiceImpl.java

示例8: suspendProcessDefinitionByKey

import org.activiti.engine.impl.cmd.SuspendProcessDefinitionCmd; //導入依賴的package包/類
public void suspendProcessDefinitionByKey(String processDefinitionKey) {
  commandExecutor.execute(new SuspendProcessDefinitionCmd(null, processDefinitionKey, false, null));
}
 
開發者ID:springvelocity,項目名稱:xbpm5,代碼行數:4,代碼來源:RepositoryServiceImpl.java


注:本文中的org.activiti.engine.impl.cmd.SuspendProcessDefinitionCmd類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。