[jboss-user] [jBPM] - Variables from HistoryService are always Strings

Philipp Ossler do-not-reply at jboss.com
Thu Sep 9 11:17:53 EDT 2010

saig0 [http://community.jboss.org/people/saig0] created the discussion

"Variables from HistoryService are always Strings"

To view the discussion, visit: http://community.jboss.org/message/560391#560391

Hi all!

I'm using jBPM 4.4 and try to get different variables from an ended process instance with the HistoryService.
The problem is that the HistoryService only get variables with type String. When I try to get a variable with an other type, it transfer the variable into String.
If the variable is a number, I'm able to cast it into number. But in case the variable is a Boolean, I get "T" or "F". And if the variable is a date, it will cast into an unusual format.
It seems that the variable will be transform into String with a toString() method, when the process instance end.

Is this behavior correct? If it is correct, the return type of getVariable() from HistoryService have to change from Object to String.

Thank you for answer!

Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100909/e02ba713/attachment.html 

More information about the jboss-user mailing list