<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Task changes priority after SignalBoundary</title><link>https://answers.axonivy.com/questions/3375/task-changes-priority-after-signalboundary</link><description>&lt;p&gt;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 &lt;code&gt;HIGH&lt;/code&gt; to &lt;code&gt;LOW&lt;/code&gt;. Why does that happen? &lt;/p&gt;
&lt;p&gt;&lt;img alt="alt text" src="https://answers.axonivy.com/upfiles/userTaskPriorities.png"&gt;&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/3375/task-changes-priority-after-signalboundary" rel="self"></atom:link><language>en</language><lastBuildDate>Mon, 30 Jul 2018 09:13:12 -0400</lastBuildDate><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/3375/task-changes-priority-after-signalboundary/3377</link><description>&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;List&amp;lt;ITask&amp;gt; destroyed = signal.getDestroyedTasks();
ITask last = destroyed.get(destroyed.size()-1);
ivy.task.setOriginalPriority(last.getOriginalPriority());
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;img alt="alt text" src="https://answers.axonivy.com/upfiles/changeToPriorityBeforeSignalling.png"&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Mon, 30 Jul 2018 09:13:12 -0400</pubDate><guid>https://answers.axonivy.com/questions/3375/task-changes-priority-after-signalboundary/3377</guid></item></channel></rss>