REST API output extraction error: java.lang.ClassNotFoundException: org.camunda.spin.Spin.S

Hi Everyone,

I am getting a java error for extracting a REST output in a service task based on Implementation as “connector”:
Error message: The process could not be started. : java.lang.ClassNotFoundException: org.camunda.spin.Spin.S

Output of REST API is:: {“script_id”:16,“run_id”:“445b52d3-0956-4c10-b690-c1f0bc9ba84f”}

In the connector output I amusing this javascript as Inlinescript and getting the above mentioned error. S(response).prop(“script_id”).numberValue()

If I switch to ${response} as expression the above output comes out. I want to extract the two parameters: run_id and script_id

Can anyone suggest where am I making the mistake?

Thank you very much in advance.

okay I found the solution. Instead of Variable Assignment Type:: Script, I need to keep it in String or Expression and then this code

${S(response).prop(“script_id”).numberValue()}

It seems that this question was related to Camunda Platform and not Camunda Cloud.

Please use the other forum for Camunda Platform:

2 Likes

Thank you Philipp.