Can't write expression on variable

Hi Everyone, i am new to Camunda. And i am getting some problems deploying my test bpmn.
Main logic is to start process go to External implementation on Java get some result,check it . I can pass variables to JAVA, also Java process is working and writing logs. I am placing value to output like that
HashMap<String, Object> resultmap = new HashMap<String, Object>();
resultmap.put(“test_result”,“ok”);
externalTaskService.complete(externalTask, resultmap) ;

And try to figure it out with (Flow-> Condition-> Expression)
${test_result != ‘ok’}

but i am getting an error,
“ProcessEngineException”,“message”:“condition expression returns non-Boolean: result has class java.lang.String and not java.lang.Boolean”}

What is the problem? Thanks in advance.

Same with ${test_result != “ok”}

Hi @akhundof
Welcome to the forum, can you upload your BPMN process model. Also could you take a look at the style guide to ensure that the code in your post is easier to read?

limitden_acma.bpmn (5.6 KB)

The problem is actually with the other sequence flow.

I you’d like a default path for your process then you don’t add a condition at all - instead you convert the flow to a default flow from the context menu of the sequence flow.

1 Like

Thanks, that fixed problem