Kogito - Multi instance subprocess failed NullPointerException for Kogito 1.15.0 Version

240 views
Skip to first unread message

Lakshmi R

unread,
Jan 13, 2022, 2:59:48 PM1/13/22
to Kogito development mailing list

Hi Team,
I have tried using the Multi-instance subprocess  using  1.15.0.Final version

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
Message has been deleted

Lakshmi R

unread,
Jan 13, 2022, 3:01:07 PM1/13/22
to Kogito development mailing list
Please find the  sample project with Kogito Version  1.15.0.Final version
Message has been deleted

Lakshmi R

unread,
Jan 13, 2022, 3:02:47 PM1/13/22
to Kogito development mailing list
sample-kogito-main.zip

Rajnish Gupta

unread,
Jan 14, 2022, 3:29:23 PM1/14/22
to Kogito development mailing list
Hi Team,

Can we have feedback on the reported issue? 

Our scenario is:

1. Request contains multiple Products
2. Each Product will be decomposed for Product and Resource
3. For Each decomposed Product and Resource, an external service needs to be called.
4. For each paired Product and Resource, the aggregated status will be calculated. Based on aggregated status, response needs to be sent to originator for each Source Product.

Multiple instance sub-process can solve this problem. From  Kogito 1.15.0, we were assuming that issue can be resolved.

Now Could you share any alternate solution for the same (if any)?

Cristiano Nicolai

unread,
Jan 16, 2022, 9:13:43 PM1/16/22
to Kogito development mailing list
Hi,

The project pom.xml was quite confusing to be honest, I did some cleanup and that seems to be working now.
Please also note that On entry action is not supported yet, so it needs to be removed from parentProcess.bpmn2 -> sub-process node.


--
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/647604fd-eee0-46dd-9b43-88678990a99cn%40googlegroups.com.


--
Best regards,

Cristiano Nicolai
pom.xml
Reply all
Reply to author
Forward
0 new messages