AnsweredAssumed Answered

Rest post

Question asked by mtail on Jul 30, 2014
Latest reply on Jul 30, 2014 by mtail
I make a post with the rest api. And in response I get the following error.
Here my code :

               String uri = REST_URI + "/runtime/process-instances";
      JSONStringer jsRequest = new JSONStringer();
      
      jsRequest.object()
            .key("processDefinitionId").value(processDefinitionId)
            .key("variables").array().object()
            .key("name").value("LoanId")
            .key("value").value("132312")
            .endObject().endArray();
      
      jsRequest.endObject();
      
      Representation representation = new StringRepresentation(jsRequest.toString(), MediaType.APPLICATION_JSON);
      
      System.out.println("Representation : " + representation.toString());
      
      // Do post
      representation = getClientResource(uri).post(representation);
      …

The error :
Avertissement: Exception or error caught in status service
java.lang.NoSuchFieldError: TENANT_ID
   at org.activiti.rest.service.api.runtime.process.BaseProcessInstanceResource.<clinit>(BaseProcessInstanceResource.java:46)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

Could someone please help me?
Thank's

Outcomes