Tasklist: use "save" button with json variables

201 views
Skip to first unread message

Stefan

unread,
Feb 16, 2015, 1:24:09 PM2/16/15
to camunda-...@googlegroups.com
Hi @all,

I find the "save" feature of the tasklist very usefull. Every Task now got a "complete" and "save" button. The "save" button does save the values of the form to local store, as far as I understood the docs. For my case I am using complex process variables (json format), like in your example. Unfortunately the values of the form are not saved for complex variables. Is there a way to do so?

regards
Stefan

Sebastian Stamm

unread,
Feb 17, 2015, 2:49:50 AM2/17/15
to camunda-...@googlegroups.com
Hi Stefan,

in the example the complex variable is fetched via Javascript and then applied to a scope variable when the variables-fetched event fires. This event happens before the saved state is applied, see [1]. If you assign the variable value during the variables-restored event, then the saved value is displayed correctly.

I think the example can be a bit more clear in this regard; I created a ticket for that [2].

I hope this helps :)

Cheers
Sebastian


Reply all
Reply to author
Forward
0 new messages