Multi instance subprocess failed NullPointerException

157 views
Skip to first unread message

Lakshmi R

unread,
Jan 4, 2022, 1:34:21 PM1/4/22
to Kogito development mailing list
Hi Team,
I have tried using the Multi-instance subprocess by referring the sample example
 https://github.com/kietutorials/jbpm-examples/tree/master/subprocess
But,I'm getting  NullPointerException when I implement the Multi-instance subprocess
StackTrace:
  Caused by: java.lang.NullPointerException
        at org.jbpm.compiler.canonical.ForEachNodeVisitor.visitNode(ForEachNodeVisitor.java:70)
        at org.jbpm.compiler.canonical.ForEachNodeVisitor.visitNode(ForEachNodeVisitor.java:40)
        at org.jbpm.compiler.canonical.AbstractNodeVisitor.visitNode(AbstractNodeVisitor.java:65)
        at org.jbpm.compiler.canonical.ProcessVisitor.visitNodes(ProcessVisitor.java:246)
        at org.jbpm.compiler.canonical.ProcessVisitor.visitProcess(ProcessVisitor.java:170)

Please let me know the attached BPMN file for further reference.
Could you please help me out it get rid of this issue?
Regards,
Lakshmi R
parentProcess.bpmn2
loanSubProcess.bpmn2

Tiago Dolphine

unread,
Jan 4, 2022, 2:00:07 PM1/4/22
to kogito-de...@googlegroups.com
Hi Lakshmi,
Which kogito version are you using? Are you using persistence? It would be helpful to share a test project to reproduce the issue.

Thanks,

Tiago Dolphine

Senior Software Engineer

Red Hat

tdol...@redhat.com   



--
You received this message because you are subscribed to the Google Groups "Kogito development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kogito-developm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kogito-development/57bbc0a9-c1fe-42b3-8622-433474a886ean%40googlegroups.com.

Lakshmi R

unread,
Jan 4, 2022, 2:27:34 PM1/4/22
to Kogito development mailing list
Hi,

I'm using 1.12.0.Final version.Please find the attached sample project.

The service task ,Im calling tha dummy service :
@GetMapping("/getList")
        public List<String> getList() {
                 ArrayList<String> list=new ArrayList<String>();
                 list.add("Completed");
                 list.add("Inprogress");
                 list.add("Failed");
                 list.add("Error");
                return list;
        }

subprocess.zip

Tiago Dolphine

unread,
Jan 5, 2022, 6:42:53 AM1/5/22
to kogito-de...@googlegroups.com
Hi Lakshmi,
I tested your project and indeed there is an issue with multiple instances, however, this issue is already fixed and it is supposed to be in Kogito 1.15.0.Final, the next release.

Regards,

Tiago Dolphine

Senior Software Engineer

Red Hat

tdol...@redhat.com   


Tiago Dolphine

unread,
Jan 5, 2022, 6:48:13 AM1/5/22
to kogito-de...@googlegroups.com
There is another issue that you need to fix in the processes in the given example because it is using onEntry action in the subprocess, and currently, this is not supported in Kogito, one way to overcome this restriction is to use a Script Task before the connection with the subprocess node with the same script content present in the onEntry.


Tiago Dolphine

Senior Software Engineer

Red Hat

tdol...@redhat.com   


Ricardo Zanini

unread,
Jan 5, 2022, 7:31:16 AM1/5/22
to Kogito development mailing list
Just to add on top of Tiago's reply, you can find the current status of Kogito BPMN support in the docs: https://docs.jboss.org/kogito/release/latest/html_single/#ref-bpmn-support_kogito-developing-process-services


Cheers!
--
Zanini


Lakshmi R

unread,
Jan 5, 2022, 8:55:47 AM1/5/22
to Kogito development mailing list
Thanks Tiago for the quick response. Any tentative date for   1.15.0.Final
Reply all
Reply to author
Forward
0 new messages