cancel
Showing results for 
Search instead for 
Did you mean: 

activiti + drools , and I got the errors

cjk_activiti
Champ in-the-making
Champ in-the-making
hi , I Use BusinessRuleTask in my process, It works well ,but when I query the taskVariables , get following error, can somebody help me?

org.activiti.engine.ActivitiException: Couldn't deserialize object in variable '${ir}'   
   at org.activiti.engine.impl.variable.SerializableType.deserialize(SerializableType.java:110)
   at org.activiti.engine.impl.variable.SerializableType.getValue(SerializableType.java:51)


and this is my config:
<businessRuleTask id="isSkipDraft" name="drool task" activiti:ruleVariablesInput="${ir}" activiti:rules="draft1,direct to reply" activiti:resultVariable="${ir}"></businessRuleTask>
3 REPLIES 3

cjk_activiti
Champ in-the-making
Champ in-the-making
this is my config in the bpmn:

<businessRuleTask id="isSkipDraft" name="drool task" activiti:ruleVariablesInput="${ir}" activiti:rules="draft1,direct to reply" activiti:resultVariable="${ir}"></businessRuleTask>

cjk_activiti
Champ in-the-making
Champ in-the-making
<businessRuleTask id="isSkipDraft" name="drool task" activiti:ruleVariablesInput="${ir}" activiti:rules="draft1,direct to reply" activiti:resultVariable="${ir}"></businessRuleTask>

gdharley
Elite Collaborator
Elite Collaborator

It appears as though you are running a unit test and that the error is being triggered immediately you start the test.

at org.activiti.engine.impl.TaskServiceImpl.getVariables(TaskServiceImpl.java:218)
at cn.StartWorkflowTest.start(StartWorkflowTest.java:54)

The error is a simple deserialization error, specifically an End Of File is being hit unexpectedly. This suggests the variable is probably null, but we wont be able to tell without proper debugging.

Can you please attach the unit test project so we can properly debug?

Thanks,

greg