当前位置: 首页>>代码示例>>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;未经允许,请勿转载。