How can I save data while I'm in a Task Switch.

I'm resuming a Task and want to save data after submitting each form/page. If the user session expires or the user cancels the task the data should load when the user resumes the task the next time.

asked 21.10.2014 at 10:34

HaraldWeber's gravatar image

HaraldWeber
(suspended)
accept rate: 33%


Hello,

I'm not sure if this helps you completly. You can set the Task to state "PARK" this saves the data and the Task is still existing. But this helps only if the user presses a button "PARK" which is calling this event.

I think if you want to have all data saved which are entered in a form you have to save them in a database.

May be following helps: Loading Ivy Default data as now when starting the form. After every Change in the form write the data into a DB Table. if the dialog is started a second time just look at the database if there is a entry for this Case/Task and override the data loaded from ivy System db. After finishing or canceling the task regular i would delete the db entry.

maybe this could help.

Roland

link

answered 08.11.2014 at 07:58

roland's gravatar image

roland
(suspended)
accept rate: 41%

Thanks for the answer. I solved the problem by serializing the task data and save it into a binary database column. Its exactly the same prcedure an ivy task uses. I have to create the "my task data" before the first taskswitch element to save the id to the "ivy task data". The Ivy task now stores the id to the actual task data. I also have to load "my task data" manually if a task is resumed.

(10.11.2014 at 11:52) HaraldWeber HaraldWeber's gravatar image

This is no longer possible, if you want to do similar you can use businessdata: https://answers.axonivy.com/questions/4239/park-task-not-saving-data

link

answered 18.12.2019 at 02:10

Lukas%20Lieb's gravatar image

Lukas Lieb ♦♦
4412412
accept rate: 61%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×68

Asked: 21.10.2014 at 10:34

Seen: 4,485 times

Last updated: 18.12.2019 at 02:10