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!
Phil
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/560391#560391]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to