AnsweredAssumed Answered

Activiti REST API and

Question asked by mwm1 on Sep 2, 2015
Latest reply on Sep 7, 2015 by mwm1
Dear all,
I have one program client which use Activiti REST API to start process using CXF such as below:

ProcessInstanceCreateRequest reqProcess = new ProcessInstanceCreateRequest();

      int resp = WebClient.fromClient(rsWebClient)
            .header("Authorization", setUser()).accept("application/json")

      return resp;

That works well.

On the other hand, I have deployed process running on Tomcat  with Activiti REST which consume Request from the client to finalize process flow.

The problem I can't do execution.getVariable("requestFromClient")

If I make toString, I can see the request from client"requestFromClient–>"
            + execution.getVariable("requestFromClient").toString());

I can see either all variables in the process by doing

for (String string : varNames) {
"Variable Named " + string + " exists");

My question is how to get request from client in the process. Actually, I have  execution.getVariable("requestFromClient")  which is null.
Thank you for your reply.
Best regards