Unable to deploy a project that contains a multiple instance subprocess in BPM Suite 6.1.x

Solution Verified - Updated -

Environment

  • Red Hat JBoss BPM Suite (BPMS) 6.1.x

Issue

The following error is thrown by trying to deploy a business process that contains a multiple instance subprocess:

13:53:32,458 ERROR [org.drools.compiler.kie.builder.impl.AbstractKieModule] (http-localhost.localdomain/127.0.0.1:8180-6) Unable to build KieBaseModel:defaultKieBase
[-1,-1]: Process 'HelloProcess' [hello.Accounts]: ForEach node 'XX' [1] has no variable name
[-1,-1]: Process 'HelloProcess' [hello.Accounts]: ForEach node 'XX' [1] has no collection expression

Resolution

It is due to the validation for MI Collection Input and MI Data Input fields which have not been set for the multiple instance subprocess. Please refers to the sample project attached in order to check how to fill out those fields properly.

Note: The sample project attached is a multiple instance subprocess demonstrating. It means that you should use it only as a guide once the code to start the process uses some internal API and its use is not recommended in production environment.

Attachments

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments