cancel
Showing results for 
Search instead for 
Did you mean: 

Error at Activiti Explorer when Sub process Called

rajendiran
Champ in-the-making
Champ in-the-making
Hi,

I created a main process where I have a sub process call thro' "Call Activity". I am able to complete all user tasks successfully before the "Call Activity". The "Call ACtivity" is able to call the sub process. When I logged in into first assignee, I do not have the defined forms. In the inbox, I am able to see the task. But without form. I attached the complete error message. Please someone help me to solve this issue.

Thanks in advance.

Regards,
Raj
5 REPLIES 5

jbarrez
Star Contributor
Star Contributor
The exceptions seems to hint there is something wrong with the form:

Caused by: java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String
at org.activiti.engine.impl.form.StringFormType.convertModelValueToFormValue(StringFormType.java:38)

rajendiran
Champ in-the-making
Champ in-the-making
Dear Mr. Jbarrez,

The error still persists. But I am sure that I do not have any boolean parameters in the form. I attached the complete bpmn file for your kind reference. Please look into that and help me to fix this bug.

Thanks and Regards,
Rajendiran R

frederikherema1
Star Contributor
Star Contributor
Can you double-check what the type of all variables in the activiti:in are, at the point where the call activity is started (can be done in ACT_RU_VARIABLE table)? There is a boolean in there somewhere, probably passed from the super-process that you're trying to use as a String-field instead…

rajendiran
Champ in-the-making
Champ in-the-making
Dear Mr. Freder,

Thanks a lot for your suggestion. I fixed this bug with reference to your suggestion.

There was no boolean variable in "activiti:in". What happened was that I did null check for the fields in the input of "Call Activity". The activiti engine created all those parameters as boolean columns in ACT_RU_VARIABLE table. That's why, I got ClassCastException.

I have another smallest issue. I defined a parameter called "BankFeedback" inside the subprocess. The data in the "BankFeedback" form is not coming from sub process to parent process. I attached my bpmn file herewith for your reference.

Thanks again.

Regards,
Rajendiran R

rajendiran
Champ in-the-making
Champ in-the-making
Dear Mr. Freder,

I fixed the above mentioned issue. Thanks for your help.

Regards,
Rajendiran R