cancel
Showing results for 
Search instead for 
Did you mean: 

Submitting form data without completing a task

sergio1
Champ in-the-making
Champ in-the-making
Dear All,

Is it possible to submit form data without completing a task?
I'd like to implement a scenario where a user can do only a part of work connected with the task, saves the partial results and then pick up the task again some time later to continue the work.

Best regards,

Sergio
5 REPLIES 5

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
With the api you can. Look at the taskService. From the explorer I'm not sure. Never use it for complex situations.

sergio1
Champ in-the-making
Champ in-the-making
I had looked at API before I posted my question and unfortunately couldn't find anything to handle this issue.

The TaskService class has only complete method, and the FormService class has submitTaskFormData method which completes a task.

Best regards,

Sergio

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
Please  next time mention what you did before. We cannot smell that, nor are we clairvoyant.

But to stick to the topic, Funny, my taskservice has get/setVariable(s)(Local)(……) as well.

Formdata is transformed to variables when submitted, so you can use these methods…

Ronald

sergio1
Champ in-the-making
Champ in-the-making
For me it's obvious to check documentation first and only then post questions on a forum – I didn't realize this forum works differently.

But to stick to the topic, process variables turned out to be a good track, although get/setVariable methods should be called on the object of RuntimeService class.
Thanks for your help.

Best regards,

Sergio

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
It's not that this forum works differently, it's that not everyone is like you say you are and does a lot of homework upfront. Since it is hard to differentiate if someone does not say what he (or she) has done, I usually assume the worse and mostly that is correct.

In other words, not many people do http://www.catb.org/~esr/faqs/smart-questions.html#beprecise

But nice to see you are on the right path…