How Activiti Engine stored String value in process variable?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2011 11:10 AM
Hi there,
My app stored a string value to process variable using runtimeService.setVariable(), for example:
Can I confirm Activiti Engine stored String as byte array when it set to process variable?
Please advice.
Best regards,
Chee Kin
My app stored a string value to process variable using runtimeService.setVariable(), for example:
runtimeService.setVariable(executionId, "domainClassName", "com.vobject.User")
and find out that the string value such as "com.vobject.User" stored as byte array in Activiti tables, not as String.Can I confirm Activiti Engine stored String as byte array when it set to process variable?
Please advice.
Best regards,
Chee Kin
Labels:
- Labels:
-
Archive
8 REPLIES 8

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2011 10:03 PM
Hi there,
Anyone? (Especially from Activiti Core Developers)
Thanks in advance.
Best regards,
Chee Kin
Anyone? (Especially from Activiti Core Developers)
Thanks in advance.
Best regards,
Chee Kin
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2011 04:31 AM
Does it actually store it as a java serialized string? If so, maybe the default variable types are not in the right order. Try debugging the code and putting a breakpoint in DefaultVariableTypes.findVariableType(Object)

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2011 04:40 AM
Does it actually store it as a java serialized string? If so, maybe the default variable types are not in the right order. Try debugging the code and putting a breakpoint in DefaultVariableTypes.findVariableType(Object)
Thanks for response.
Yes, it stored as java serialized string. Is this the correct behavior of Activiti engine?
Best regards,
Chee Kin
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2011 04:45 AM
No it is not and it definitely does not behave that way for me.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2011 05:36 AM
Saving a String shouldn't create a byte-array… This is only done for non-primitive (and wrappers) and non-String serializables + byteArrays. Are you sure you just used a String as variable value?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2014 02:37 AM
Debugging error
Hi, I am getting following error while debugging with h2 database 1.3.175 when I attach the h2-1.3.175.jar file :
Class File Editor
The source attachment does not contain the source for the file Server.class
Also I am not able to see any database entry for ACT_RE_PROCDEF table.
Thanks in advance,
Kanchan
Hi, I am getting following error while debugging with h2 database 1.3.175 when I attach the h2-1.3.175.jar file :
Class File Editor
The source attachment does not contain the source for the file Server.class
Also I am not able to see any database entry for ACT_RE_PROCDEF table.
Thanks in advance,
Kanchan

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2014 12:59 PM
Can you add a bit of background about your issue? What are you trying to do?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2015 03:52 AM
Kanchan,
I had this problem some time ago and i figured out that in Groovy's case the usual string is treated as GString and is stored as an object.
you can try this and see if it works
new String("TEST".toString());
Regards,
Raj
I had this problem some time ago and i figured out that in Groovy's case the usual string is treated as GString and is stored as an object.
you can try this and see if it works
new String("TEST".toString());
Regards,
Raj
