Error editing a variable

1
+2
-1

Hi.

I have found an error while editing a task variable, and it does not let me update a variable:

"org.bonitasoft.studio.model.expression.impl.ExpressionImpl cannot be cast to java.util.List"

This error happens with any variable type, Integer, String, Boolean... I'm working on: Bonita BPM Community Edition 6.3.3.

can any help me? Thanks!

Comments

Submitted by enrico.curiotto on Fri, 09/19/2014 - 10:38

Hi jrestrepo, where do you modify the variable? if you are on a groovy script be sure to return a java.util.List variable. Please give some more detail like the code you use. Cheers

Submitted by jrestrepo_1 on Fri, 09/19/2014 - 18:01

Hi enrico.curiotto, for example I create a Long variable (in a no-human task) with default value '8', next when I try to modify that variable to '80' default value or type to String ----> "org.bonitasoft.studio.model.expression.impl.ExpressionImpl cannot be cast to java.util.List" happens. I don't understand why java.util.List, if I'm using Long, String, Boolean... types in declaration and assignation.

look at this image http://imgur.com/03jAvmZ

I found this situation doesn't occur in human tasks' variables nor process variables!

Thanks.

1 answer

1
0
-1

Hi there,

I've also just tested this with 6.3.3 and have a similar (the same problem)...It lloks like it is an error in refactoring code.

How to test...

  1. create a one step process
  2. add a LONG variable to the step
  3. close the variable add window
  4. double click to edit the variable
  5. change type from Long to Text
  6. the refactoring window opens and sits there - I had to crash the whole Studio to get Java to respond...

I've opened a ticket on Bonita JIRA here... if you want to follow.

Workaround...

  • Delete the variable and create a new one...

regards Seán

Comments

Submitted by jrestrepo_1 on Wed, 09/24/2014 - 21:28

Yes Sean, the only way to modify a variable is deleting it and create other. This way is not efficient, but it's the only one.

Notifications