Unable to evaluate script:ReferenceError: "S" is not defined in <eval> at line number 1

Hi All,

I have created my own camunda spring project and am using connectors to make rest API calls, when i made a call and wanted to get the response in a JSON/Spin object format i kept getting the error
Unable to evaluate script:ReferenceError: ā€œSā€ is not defined in at line number 1

Here is the BPM file -
restProcess.bpmn (3.8 KB)

I have added the following camunda spin dependencies

org.camunda.spin
camunda-spin-dataformat-all
1.9.0


org.camunda.spin
camunda-spin-core
1.9.0

Not sure what i am missing here, like i mentioned above, i am using a camunda spring starter project built from start.camunda.com

Thanks in advance,
Prateek

Try to follow the instructions here:
https://docs.camunda.org/manual/7.13/user-guide/data-formats/configuring-spin-integration/

<dependencyManagement>
    <!-- Use the Bill Of Materials (BOM) import POMs as much as possible -->
    <dependencies>
        <!-- runtime -->
        ....
        <dependency>
            <groupId>org.camunda.bpm</groupId>
            <artifactId>camunda-bom</artifactId>
            <version>${version.camunda}</version>
            <scope>import</scope>
            <type>pom</type>
        </dependency>
        <dependency>
            <groupId>org.camunda.connect</groupId>
            <artifactId>camunda-connect-bom</artifactId>
            <version>${version.camunda.connect}</version>
            <scope>import</scope>
            <type>pom</type>
        </dependency>
        ....
        <!-- test -->
        <dependency>
            <groupId>org.junit</groupId>
            <artifactId>junit-bom</artifactId>
            <version>${version.junit}</version>
            <type>pom</type>
        </dependency>
    ....
    </dependencies>
</dependencyManagement>

<dependencies>
    ....
    <dependency>
<!-- FIXME: You need to include the Spin engine plugin if you want to activate and register Spin -->
        <groupId>org.camunda.bpm</groupId>
        <artifactId>camunda-engine-plugin-spin</artifactId>
    </dependency>
    <dependency>
        <groupId>org.camunda.spin</groupId>
        <artifactId>camunda-spin-dataformat-json-jackson</artifactId>
    </dependency>
    ....
</dependencies>
1 Like