Is it possible to set a suspended Task to DONE using the Ivy API? (as it is possible to destroy the task with ivy.task.destroy()) UseCase: Within a process, a task is generated for a specific role (e.g. a task without user interaction / interface etc.) to report the progress. The system/process may now continue working in the background and, as soon it has been done its work, the state of the task should also be set to DONE by using java code (ivyscript code would also be possible). The reason for that is that the user should see this task in the task history but the task should not going to "destroyed" Thanks in advance for answers asked 16.01.2019 at 05:44 Stefan |
Hi Alex, Thanks for your quick response. The concrete use case is to have a task for an external interface and, if the external process caught up and finishes it's work, the task should also indicate that it has been finished. Shure, that can also be done by an Immediate Event, but: if the loose coupled interface process fails (e.g. external system is not ready etc.), every permitted user is able to take up the task instead and proceed it manually. But I found another solution now: If the external Interface has been completed it's work, it sends a http post with an appropriate user and the corresponding taskId to the ivy server which ends the task. Thanks a lot and kind regards Stefan answered 16.01.2019 at 10:10 Stefan There is another way is to use "boundary signal", every Task will have an unique signal start which we could send a signal to it, then the task will continue and end.
(22.01.2019 at 03:51)
vinh_
The mentioned signal boundary event is only available with the user task element (which is bound to an user dialog), but not with a "request start" or "task switch" element. And with this "user task" element, the task will be destroyed after the signal has been received (not to state done as requested)
(22.01.2019 at 06:53)
Stefan
|
Once you sign in you will be able to subscribe for any updates here
By RSS:Markdown Basics
Tags:
Asked: 16.01.2019 at 05:44
Seen: 2,522 times
Last updated: 22.01.2019 at 06:53
I think there is no public api for that. You only create a task for a user to report the progress? You should consider to use another way to report this 'state' to the user. This is the same discussion as we have with this here: https://answers.axonivy.com/questions/2504/can-we-set-case-status-to-done