I have a UserTask that can optionally be cancelled by firing a Signal. When the Signal is actually received the Task seems to change its Priority from HIGH to LOW. Why does that happen?

alt text

asked 30.07 at 09:10

SupportIvyTeam's gravatar image

SupportIvyTeam ♦♦
1.1k587691
accept rate: 75%


SignalBoundaries on a UserTask are normally used to Expire a Task on an exceptional path. So it is a feature, that the state of this Task can be adjusted by configuring an expiry Priority.

However if you don't like that behaviour you can change the priority back to its original state within the SignalBoundary event that handles the signal:

List<ITask> destroyed = signal.getDestroyedTasks();
ITask last = destroyed.get(destroyed.size()-1);
ivy.task.setOriginalPriority(last.getOriginalPriority());

alt text

link

answered 30.07 at 09:13

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
7.1k11342
accept rate: 70%

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:

×56
×8

Asked: 30.07 at 09:10

Seen: 25 times

Last updated: 30.07 at 09:13