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 at 05:44

Stefan's gravatar image

Stefan
1264611
accept rate: 60%

1

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

(16.01 at 09:07) Alex Suter ♦♦ Alex%20Suter's gravatar image

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

link

answered 16.01 at 10:10

Stefan's gravatar image

Stefan
1264611
accept rate: 60%

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 at 03:51) vinh_ vinh_'s gravatar image

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 at 06:53) Stefan Stefan's gravatar image
Your answer
toggle preview

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:

×31
×10
×1

Asked: 16.01 at 05:44

Seen: 254 times

Last updated: 22.01 at 06:53