Camunda 同步流程实例不会挂起

问题描述

如果我遇到一些错误,我想暂停一个同步运行的流程实例,让管理员有时间纠正错误,然后他可以使用其 ID 恢复流程实例。

我正在尝试从 Java 委托类挂起正在运行的流程实例,但它似乎没有挂起。

下面是我的代码 -

public class Generate_DT_PS_CCS implements JavaDelegate {

   @Override
   public void execute(DelegateExecution execution) throws Exception {
            RuntimeService runtimeService = execution.getProcessEngineServices().getRuntimeService();

            String pid =execution.getProcessInstanceId();
            System.out.println("supending the instance - process id " +pid);
            runtimeService.suspendProcessInstanceById(execution.getProcessInstanceId());

   }
}     
          

Camunda 同步服务任务挂起有问题吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)