Hi Ivy Team,

How to complete a task from REST service in Axon.Ivy ?

So, far I saw that I can do .destroy() but it doesn`t feel the right, I believe that there will be some side effects

or

.setActivator(ivy.session.getSecurityContext().getSystemUser()) but this way I`m loosing the history who was the assignee of the task

Any other options ?

Maybe to do HTTP call to the end-point /TaskA.iot?taskId=7

My goal is to build REST API that can manage the Axon.Ivy tasks from external system.

Best Regards, Yordan

asked 07.10 at 09:40

Stelt0's gravatar image

Stelt0
19293542
accept rate: 12%


Yes you could just use the task (start) Url as Rest Service and call it, this will execute the process. There is no other Web Api for that at the moment.

If you have a Html Dialog then the process will stay there. So you have either do post another request like the browser would do or you have to left out the Html Dialog with an alternative before it.

To set the System User as Activator is also an option, this should automatically skip Html Dialogs

link

answered 08.10 at 05:23

Christian%20Strebel's gravatar image

Christian St... ♦
3.2k21236
accept rate: 89%

If I set the user to System, can you tell me what is the best way to set it back afterwards ? Otherwise in History it will be assigned to System

(09.10 at 09:21) Stelt0 Stelt0's gravatar image

Hi, it is not possible to change activator after the task was finished.

(11.10 at 05:06) SupportIvyTeam ♦♦ SupportIvyTeam'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:

×68
×51
×35
×27

Asked: 07.10 at 09:40

Seen: 140 times

Last updated: 11.10 at 05:06