XOR gateway process keeps throwing java.lang.string error in camunda

2,698 views
Skip to first unread message

alan fernandez

unread,
Mar 30, 2014, 11:19:37 PM3/30/14
to camunda-...@googlegroups.com
Hi Guys,

I have been trying to fix this issue for weeks and its literally driving me nuts. Would appreciate if someone could help me out with it.

Using eclipse I created an XOR gateway and entered the following conditions for the outgoing sequence flow arrows: form complete and form incomplete. I was able to deploy it successfully on Camunda. But when I run it I get the following error: Cannot submit Task form...condition expression returns non boolean form to complete (java.lang.string).

Could someone please help me out with this issue. I've attached a word file for reference as well.

Thank you!
Allan
Camunda Issue.doc

Sebastian Menski

unread,
Mar 31, 2014, 3:29:22 AM3/31/14
to camunda-...@googlegroups.com
Hi Allan,

You have to use a boolean expression for the conditions of a XOR gateway. So an process variable or an expression which evaluates to boolean true or false.

So for your example it would be possible to set a process variable form_state to the values complete or incomplete on your form submit. 
And as conditional expression you could test the state ${form_state == 'complete'} or ${form_state == 'incomplete'}.

Please also see the documentation on the XOR gateway and conditional sequence flows for more examples and explanation.

Cheers
Sebastian

alan fernandez

unread,
Apr 2, 2014, 2:16:12 AM4/2/14
to camunda-...@googlegroups.com
Hi Sebastian,

Thank you for your response. I followed the process suggested by you and its working fine now!

Kind regards,
Allan

wkha...@gmail.com

unread,
Jan 28, 2016, 1:46:50 PM1/28/16
to camunda BPM users
danke vielmals! es klappt wunderbar. gruß
Reply all
Reply to author
Forward
0 new messages