cancel
Showing results for 
Search instead for 
Did you mean: 

Question / Problem with runtimeService.getVariable(

hamed
Champ in-the-making
Champ in-the-making
Hi
I'm using drools with Activiti , I have businessRuleTask in my processDef .
in my code

Message message = new Message(); //mySampleObject
      message.setMessage("hello Activiti");
      message.setStatus(Message.HELLO);
after that i put the variable

runtimeService.setVariable(executionId, "myMessage", message);
It returns ArrayList when I retrieve it !!!?? Why?

runtimeService.getVariable(processInstance.getId(), "myMessageOutPut");
2 REPLIES 2

hamed
Champ in-the-making
Champ in-the-making
I found it any Object (custom) used in businessRuleTask has this problem !

hamed
Champ in-the-making
Champ in-the-making
I'm really sorry ,I didn't  pay attention to user guide !
Note that the result variable will contain a List of objects. If no result variable name is specified by default org.activiti.engine.rules.OUTPUT is used.
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.