<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: how to set the task priority on the bpmn20.xml in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-set-the-task-priority-on-the-bpmn20-xml/m-p/44685#M24664</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does it work with a single task? AFAIK, tasklisteners are called on each instance…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Apr 2011 13:54:07 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2011-04-28T13:54:07Z</dc:date>
    <item>
      <title>how to set the task priority on the bpmn20.xml</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-set-the-task-priority-on-the-bpmn20-xml/m-p/44679#M24658</link>
      <description>This is a simple thing but I can't find it anywhere.programmatically:&amp;nbsp; org.activiti.engine.task &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt; setPriority()</description>
      <pubDate>Tue, 26 Apr 2011 12:58:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-set-the-task-priority-on-the-bpmn20-xml/m-p/44679#M24658</guid>
      <dc:creator>luisalves00</dc:creator>
      <dc:date>2011-04-26T12:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to set the task priority on the bpmn20.xml</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-set-the-task-priority-on-the-bpmn20-xml/m-p/44680#M24659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Nothing is available at the moment to specify the priority on the task-definition. Can you create a jira task for this feature?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2011 13:04:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-set-the-task-priority-on-the-bpmn20-xml/m-p/44680#M24659</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-04-26T13:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to set the task priority on the bpmn20.xml</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-set-the-task-priority-on-the-bpmn20-xml/m-p/44681#M24660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;here:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://jira.codehaus.org/browse/ACT-797" rel="nofollow noopener noreferrer"&gt;http://jira.codehaus.org/browse/ACT-797&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so how it's done at this point?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2011 13:49:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-set-the-task-priority-on-the-bpmn20-xml/m-p/44681#M24660</guid>
      <dc:creator>luisalves00</dc:creator>
      <dc:date>2011-04-26T13:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to set the task priority on the bpmn20.xml</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-set-the-task-priority-on-the-bpmn20-xml/m-p/44682#M24661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Best solution I can think of is using a TaskListener and field-injection to set the priority in your definition, eg:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(don't mind the syntax, just from the top of my head)&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;userTask id="task1" name="My task" &amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;extensionElements&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:taskListener event="create" class="org.activiti.SetPriorityTaskListener"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:field name="priority" stringValue="1234" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/activiti:taskListener&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/extensionElements&amp;gt;&lt;BR /&gt;&amp;lt;/userTask&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;public class SetPriorityTaskListener implements TaskListener {&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; public Expression priority;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; public void notify(DelegateTask delegateTask) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; delegateTask.setPriority((String)Integer.valueOf(priority.getValue(delegateTask)));&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; // get and set priority&lt;BR /&gt;}&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 09:50:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-set-the-task-priority-on-the-bpmn20-xml/m-p/44682#M24661</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-04-28T09:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to set the task priority on the bpmn20.xml</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-set-the-task-priority-on-the-bpmn20-xml/m-p/44683#M24662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;a little bit of hard work for a simple thing…but thanks frederikheremans, I'll do it this way &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 10:46:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-set-the-task-priority-on-the-bpmn20-xml/m-p/44683#M24662</guid>
      <dc:creator>luisalves00</dc:creator>
      <dc:date>2011-04-28T10:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to set the task priority on the bpmn20.xml</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-set-the-task-priority-on-the-bpmn20-xml/m-p/44684#M24663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's the only workaround I could think of. You're always free to submit a patch for the issue you reported… &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 11:15:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-set-the-task-priority-on-the-bpmn20-xml/m-p/44684#M24663</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-04-28T11:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to set the task priority on the bpmn20.xml</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-set-the-task-priority-on-the-bpmn20-xml/m-p/44685#M24664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does it work with a single task? AFAIK, tasklisteners are called on each instance…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 13:54:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-set-the-task-priority-on-the-bpmn20-xml/m-p/44685#M24664</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-04-28T13:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to set the task priority on the bpmn20.xml</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-set-the-task-priority-on-the-bpmn20-xml/m-p/44686#M24665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;it works for all cases so far…tks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2011 13:28:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-set-the-task-priority-on-the-bpmn20-xml/m-p/44686#M24665</guid>
      <dc:creator>luisalves00</dc:creator>
      <dc:date>2011-05-02T13:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to set the task priority on the bpmn20.xml</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-set-the-task-priority-on-the-bpmn20-xml/m-p/44687#M24666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There is a slightly easier way to achieve the same thing until this is fixed. Add the following listener to the task elements:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;extensionElements&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:taskListener event="create" expression="#{task.setPriority(100)}"&amp;gt;&amp;lt;/activiti:taskListener&amp;gt;&lt;BR /&gt;&amp;lt;/extensionElements&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2011 08:08:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-set-the-task-priority-on-the-bpmn20-xml/m-p/44687#M24666</guid>
      <dc:creator>walterjs</dc:creator>
      <dc:date>2011-05-09T08:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to set the task priority on the bpmn20.xml</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-set-the-task-priority-on-the-bpmn20-xml/m-p/44688#M24667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;tks WalterJS…didn't try it yet…but its a lot lot easier solution&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 13:36:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-set-the-task-priority-on-the-bpmn20-xml/m-p/44688#M24667</guid>
      <dc:creator>luisalves00</dc:creator>
      <dc:date>2011-05-13T13:36:29Z</dc:date>
    </item>
  </channel>
</rss>

