Hi,
I get following error when trying to access a json variable in my java project:
Caused by: java.lang.NoClassDefFoundError: org/camunda/spin/plugin/variable/value/JsonValue
My java code to access the variable looks like this:
import org.camunda.spin.plugin.variable.value.JsonValue;
JsonValue jsonRequest = (JsonValue) execution.getVariable("myVariable");
I save the json variable via an embedded form as described in the documentation (Working with Json Data | docs.camunda.org):
camForm.variableManager.createVariable({
name: 'myVariable',
type: 'json',
value:$scope.myVariable
});
I am working with Camunda Wildfly 7.10 Full Distribution and Maven Servlet-War Camunda Project and I already imported the Camunda-Spin dependencies:
<dependency>
<groupId>org.camunda.bpm</groupId>
<artifactId>camunda-bom</artifactId>
<version>7.10.0</version>
<scope>import</scope>
<type>pom</type>
</dependency>
<dependency>
<groupId>org.camunda.spin</groupId>
<artifactId>camunda-spin-core</artifactId>
</dependency>
<dependency>
<groupId>org.camunda.spin</groupId>
<artifactId>camunda-spin-dataformat-json-jackson</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.camunda.bpm</groupId>
<artifactId>camunda-engine-plugin-spin</artifactId>
<scope>provided</scope>
</dependency>`
I dont know what I am missing hereā¦
Thanks,
Marc