cancel
Showing results for 
Search instead for 
Did you mean: 

Receive Data(Json-Response) from Activiti-Class to Non-Activiti Class.

soumyadityabasu
Champ in-the-making
Champ in-the-making
Hi All

I am implementing Activiti Framework in our Project now I am 4 Activiti classes codded in Java and one Service class from where I am calling the Process Engine to get start my Activiti Process Execution .
I am able to send Request(XML) to the Activiti class where I am able to receive it using execution.getVariable("<request>").

Now I need to get back the response from Activiti class back to my Non-Activiti Service Class but unable to.

Pls. any one can throw some light as to what I need to do , any program snippet will be of great help.

Thanks in advance


Regards
Soumyaditya.
1 REPLY 1

vasile_dirla
Star Contributor
Star Contributor
If I understand well you need to get some process variables.
<code>
Map<String, Object> variables = processEngine.getRuntimeService().getVariables(processInstanceId);
</code>
or if you know which variable you want to read.
<code>
Object variableValue = processEngine.getRuntimeService().getVariable(processInstanceId, "variableName");
</code>

if this will not help you maybe you could provide a more detailed example of code of what are you trying to do.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.