Problem with spin when using spring boot integraion

Hello everyone!

I’m using camunda inside my spring boot application and I’m trying to figure out why I’m not able to use spin inside javascript .
I’m generally just trying to complete this example: https://github.com/camunda/camunda-bpm-examples/tree/master/servicetask/rest-service
and get this error:
org.camunda.bpm.engine.ScriptEvaluationException: Unable to evaluate script: ReferenceError: “S” is not defined in at line number 1

I’m able to use spin inside my java code, but it’s failing inside any script.

Does anyone have an idea how to resolve this issue?

did you ever solve this? I have a similar problem: Using SPIN in javascript tests / `setVariable` with array

Hi @astroline ,

when only the script integration fails make sure that you have a bean for SpinProcessEnginePlugin or configure the plugin in another way for your process engine depending on your setup.

Kind regards
Adagatiya