【问题标题】:JBPM: Is it not possible to call a service method with no argument from a Service task in bpmn?JBPM:是否不能从 bpmn 中的服务任务调用不带参数的服务方法?
【发布时间】:2019-02-19 18:35:19
【问题描述】:

我正在尝试通过服务任务调用接口实现的无参数方法。 eclipse JBPM 插件允许在不提供输入参数的情况下创建服务任务,但在运行时它在加载流程定义时失败并出现 NullPointerException,说明未定义操作参数。那么,这是否意味着我不能通过工作流程的服务任务调用无参数服务方法?

【问题讨论】:

  • 这与 bpmn.io 有什么关系?

标签: jbpm bpmn bpmn.io


【解决方案1】:

根据 BPMN 原则,如果可以在没有输入参数的情况下调用服务任务,请参阅https://docs.camunda.org/manual/7.6/reference/bpmn20/tasks/service-task/

空指针异常可能指向(java)(语法)问题,但如果没有完整的错误消息,很难确定可能是什么问题。

【讨论】:

  • 从类 org.jbpm.bpmn2.xml.ServiceTaskHandler 如果我不提供 inMessage 和 outMessage,以下代码会中断。 (workItemNode.getWork().getParameter("ParameterType")==null){workItemNode.getWork().setParameter("ParameterType",operation.getMessage().getType());}
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2022-12-01
  • 1970-01-01
  • 1970-01-01
  • 2022-11-08
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多