0

I am trying to invoke a no argument method of an Interface implementation via Service task. The eclipse JBPM plugin allows to create a Service task without providing the input arguments, but at runtime it fails with NullPointerException while loading the process definition stating operation arguments are not defined. So, does that mean I can not call a no argument service method via Service task of a work flow process?

B--rian
  • 5,578
  • 10
  • 38
  • 89
Jaraws
  • 581
  • 1
  • 7
  • 24

1 Answers1

0

According to BPMN principles, it is if course possible to envoke a service task without input arguments, see https://docs.camunda.org/manual/7.6/reference/bpmn20/tasks/service-task/

A null pointer exception might point to a (java) (syntax) problem, but without a full error message, it is rather hard to determine what could be wrong.

B--rian
  • 5,578
  • 10
  • 38
  • 89
  • From class org.jbpm.bpmn2.xml.ServiceTaskHandler the following piece of code breaks if I do not provide the inMessage and outMessage. (workItemNode.getWork().getParameter("ParameterType")==null){workItemNode.getWork().setParameter("ParameterType",operation.getMessage().getType());} – Jaraws Feb 22 '19 at 07:04