How to access variables from a generated form in a conditional expression/gateway?

For context I am new to bpmn/camunda and trying to play around with flows and zeebe for orchestrating microservices. I had a very simple workflow with a human task in the middle of it which is a generated form with a single checkbox. I simply want to direct the flow based on the condition of that checkbox being checked or unchecked. I am struggling to understand how to access this variable in a conditional expression in the gateway branches.

At first I thought the variable name to use in the condition maps to the “key” field, which I have set to “isChecked”, and in my connectors conditional expression I have “=isChecked = false” (true on other connector). After executing and checking the box and completing the human step, I get an incident that “isChecked” is undefined.

Then I tried mapping an output variable from the human task where source = isChecked, target = someDifferentName (also tried the other way around), and I still get the error that the variable is undefined when trying to evaluate the condition.

I’m sure this is a very simple thing, but I cannot for the life of me figure out how to access variables from generated forms. I’ve included a screenshot of the flow.

Hey Cdrisc & welcome to the Forum! :slight_smile:
Apparently this one right here is for Camunda Platform. Since you are talking about Camunda Cloud it would be great if you could replicate this topic to the Cloud Forum.

The Cloud forum is available via:

Otherwise you could also join the Cloud Slack channel to post your questions:
https://zeebe-slack-invite.herokuapp.com/

It would be great seeing you over there. :wink:
Best,
Thomas

1 Like