Map complex data to sub-process in community version

1
0
-1

Is it possible to map complex data to sub-process in community version? I am getting following error while doing that. Any help appreciated.

Error while validating expected inputs: [com.company.model.FinanceRequest@4f9fd09a cannot be assigned to COMPLEX type]

Thanks
Kiran

1 answer

1
0
-1
This one is the BEST answer!

Go to your "Call activity" (sub-process) task and in mapping tab (General -> Mapping) you can choose "Assign to Contract Input" or "Assign to Data". If you want to send complex variables try to use "Assign to Data" option".

Best regards,
bpms.help

Comments

Submitted by antoine.mottier on Wed, 10/26/2016 - 15:17

Just some additional indication about solution mention above: you need to declare a FinanceRequest business variable both in the parent and child process definition. The business variable will not be duplicated. Meaning that all modification performed in the sub-process will be reflected on the parent process business variable as their is actually a single data entry.

I built a basic example to demonstrate that. You can check process overview form to see that we have actually one single data.

Submitted by kiran.neupane on Wed, 10/26/2016 - 21:11

Thanks for the example it works for me.

Notifications