Deserialize Java Object Process Variable

425 views
Skip to first unread message

Rene Bormann

unread,
May 8, 2014, 2:54:44 PM5/8/14
to camunda-...@googlegroups.com
Hi,

is there a way to deserialize a process variable that is a java object. Is it further more possible to change values of the object and store the changed object back as variable to the process?

Thanks in advance for any help,

Rene

Daniel Meyer

unread,
May 9, 2014, 1:56:34 PM5/9/14
to camunda-...@googlegroups.com, rene.b...@westernacher.com
Hi Rene,

this is possible with the following restriction:
the Class of the variable must be known to cockpit (must be visible in the cockpit / camunda-webapp classpath).

Out of the box, this is true for things like List<String> but not for things like org.my.project.MyType.

Cheers,
Daniel

Bernd Rücker

unread,
May 10, 2014, 4:25:40 AM5/10/14
to camunda-...@googlegroups.com, rene.b...@westernacher.com
Hi Daniel.

I asked myself why we don't do a context switch when deserializing the object to JSON for the REST API? Then it would work in tasklist/cockpit out-of-the-box for classes contained in the process application. Or am I wrong?
Or was this part of your ideas around "Text-based serialization (XML) for java object process variables" (http://camunda.org/community/roadmap.html)? 

Thanks and Cheers
Bernd

Daniel Meyer

unread,
May 10, 2014, 4:53:01 AM5/10/14
to camunda-...@googlegroups.com, rene.b...@westernacher.com
Hi Bernd,

"I asked myself why we don't do a context switch when deserializing the object to JSON for the REST API?"

Reply all
Reply to author
Forward
0 new messages