I’m excited to dive into the world of Camunda with you all! I have a question regarding stringifying input variables of a map in Camunda Modeler, specifically when dealing with JSON.
Task: I need to convert a map’s input variables, which are in JSON format, into string (value of taxpayer in screenshot)
I like to use SpinJson’s S() method.
Take a look at the links below, which may help you, and with this you will be able to work with your object within camunda itself, accessing the properties through .prop().
Hi William, as always thank you for your response). Actually i whant to stringifye it in Camunda modeler. In this example I mean the value of map ${taxpayer}, will it be possible to do it ?
org.camunda.bpm.engine.ProcessEngineException: Unknown property used in expression: ${JSON.stringify(taxpayer)}. Cause: Cannot resolve identifier 'JSON'
Tue, Aug 1 2023 10:00:25 am at org.camunda.bpm.engine.impl.el.JuelExpression.getValue(JuelExpression.java:63) ~[camunda-engine-7.19.0.jar!/:7.19.0]
Tue, Aug 1 2023 10:00:25 am at org.camunda.bpm.engine.impl.el.JuelExpression.getValue(JuelExpression.java:51) ~[camunda-engine-7.19.0.jar!/:7.19.0]
Tue, Aug 1 2023 10:00:25 am at org.camunda.bpm.engine.impl.el.ElValueProvider.getValue(ElValueProvider.java:40) ~[camunda-engine-7.19.0.jar!/:7.19.0]
Tue, Aug 1 2023 10:00:25 am at org.camunda.bpm.engine.impl.core.variable.mapping.value.MapValueProvider.getValue(MapValueProvider.java:40) ~[camunda-engine-7.19.0.jar!/:7.19.0]
Tue, Aug 1 2023 10:00:25 am at org.camunda.bpm.engine.impl.core.variable.mapping.InputParameter.execute(InputParameter.java:46) ~[camunda-engine-7.19.0.jar!/:7.19.0]
Tue, Aug 1 2023 10:00:25 am at org.camunda.bpm.engine.impl.core.variable.mapping.IoParameter.execute(IoParameter.java:51) ~[camunda-engine-7.19.0.jar!/:7.19.0]