Hi,
We have one main flow as “mainflow” and calling subflow from main flow “mnbaiSahJsoWrapper”.
I have attached the pic and bpmm files for both.
In main flow in script task I am setting operationName with inline script. ie execution.setVariable (“operationName”, “getManagedDevices”).
From call activity calling the subflow mnbaiSahJsoWrapper
From rest api, mainflow is invoked
http://XXXX/YYYY/rest/process-definition/key/mainflow/start with following body
{
“variables”: {
“RequestId”: {
“type”: “String”,
“value”: “CICDU01_ROreqID_65181”
},
“IPServiceNumber”: {
“type”: “String”,
“value”: “FIA9000000217”
},
“onlineBefore”: {
“type”: “String”,
“value”: “5”
},
“checkOnline”: {
“type”: “String”,
“value”: “1”
},
“CallbackURL”: {
“type”: “String”,
“value”: “http://ip-172-31-33-25.eu-west-1.compute.internal:8101/MNBAI_Callback”
}
},
“businessKey”: “businessKey”
}
Eventhough the response is 200 OK, the inputs are not passed from main flow to subflow ie mnbaiSahJsoWrapper.
mnbaiSahJsoWrapper is stuck at start node(attached the pic)
Java : 11
Camunda: 7.18.0
Server: Wildfly 26.1.3
Could you please help to fix this.


mnbaiSahJsoWrapper.bpmn (15.8 KB)
mainflow.bpmn (5.0 KB)
This is the error I am getting
2025-06-11 11:33:03,163 ERROR [org.camunda.bpm.engine.context] (pool-10-thread-4) ENGINE-16004 Exception while closing command context: Unable to evaluate script while executing activity ‘oryx_F03C76F8-2922-4A24-B857-F024D0580DA1’ in the process definition with id ‘mnbaiSahJsoWrapper:1:9bfbcefb-4689-11f0-a7f1-70a8d3e342a7’:ReferenceError: “operationName” is not defined in at line number 60: org.camunda.bpm.engine.ScriptEvaluationException: Unable to evaluate script while executing activity ‘oryx_F03C76F8-2922-4A24-B857-F024D0580DA1’ in the process definition with id ‘mnbaiSahJsoWrapper:1:9bfbcefb-4689-11f0-a7f1-70a8d3e342a7’:ReferenceError: “operationName” is not defined in at line number 60
at org.camunda.bpm.camunda-engine@7.18.0//org.camunda.bpm.engine.impl.scripting.SourceExecutableScript.evaluate(SourceExecutableScript.java:71)
at org.camunda.bpm.camunda-engine@7.18.0//org.camunda.bpm.engine.impl.scripting.ExecutableScript.execute(ExecutableScript.java:63)
at org.camunda.bpm.camunda-engine@7.18.0//org.camunda.bpm.engine.impl.scripting.env.ScriptingEnvironment.execute(ScriptingEnvironment.java:99)
at org.camunda.bpm.camunda-engine@7.18.0//org.camunda.bpm.engine.impl.scripting.env.ScriptingEnvironment.execute(ScriptingEnvironment.java:87)
at org.camunda.bpm.camunda-engine@7.18.0//org.camunda.bpm.engine.impl.delegate.ScriptInvocation.invoke(ScriptInvocation.java:47)
at org.camunda.bpm.camunda-engine@7.18.0//org.camunda.bpm.engine.impl.delegate.DelegateInvocation.proceed(DelegateInvocation.java:58)