I am trying to spawn multiple child subprocesses by sending an Java list of parameters from my java external worker. Using below expression in the collection parameter of my workflow -
${S(parameterName).elements()}
but it is giving the below error -
org.camunda.bpm.client.exception.NotResumedException: TASK/CLIENT-01009 Exception while completing the external task: The corresponding process instance could not be resumed. Reason: status code: 500, reason phrase: {“type”:“ProcessEngineException”,“message”:“Error while evaluating expression: ${S(parameterName).elements()}. Cause: Error invoking function ‘S’”,“code”:0}