Write flow condition for a boolean type

Hi,
I create a form with a boolean field ( checkbox)
How can I write a flow condition to evaluate that? I always get:

“condition expression returns non-Boolean: $(approved.equals(“false”)) (java.lang.String)”

the field name and id is “approved” I tried with:

${approved} - ${!approved}
${approved eq true} - ${approved ed false}
${approved.equals(“true”)} - ${approved.equals(“false”)}

i have this approved element inside my embeded form by default on click it should have true value and false value otherwise, i have used Delegate class with output variables, but it seems that i can’t get value of approved, what should i change to get this value and then use it in Exclusive gateway?

If you’re using Activiti it might be better to ask the question on their forum. We can’t be sure that anything built on activiti would run with Camunda.

Hi @Niall i am trying to do this task inside camunda environment too.

Then i would suggest sticking with camunda’s own tool chain.
Creating UI with a tool designed for a different engine has a potential for unexpected problems.

In Camunda Modeller use Condition Type Expression and Expression as ${approved == false}.

1 Like

Hi Sally,

Did you try to check the example process that comes with Camunda free?
It´s an invoice process that checks the Exclusive gateway with approved or not.
In that example, they use an external form and they use “Expression” and see only “${approved}” or “${!approved}”. You can check that in the “Modeler”