<?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 [SOLVED]Take Ownership of a Pooled Task in Webscript/Java in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/solved-take-ownership-of-a-pooled-task-in-webscript-java/m-p/211488#M164618</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to figure out how to create a webscript or java-backed webscript that can allow me to take ownership of a workflow pooled task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried directly changing the "owner" property of the task, but it doesn't seem to be working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Attempted:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var task = workflow.getTaskById(args['taskId']);&amp;nbsp; // taskId is the PooledTask's id, jbpm$###.&lt;BR /&gt;logger.log(task.getId());&amp;nbsp; // shows the id properly&lt;BR /&gt;&lt;BR /&gt;logger.log("TASK PROP: " + task.properties['cm:owner']); // this property doesn't seem to exist.&lt;BR /&gt;logger.log("TASK PROP: " + task.properties['{&lt;A href="http://www.alfresco.org/model/content/1.0}owner" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}owner&lt;/A&gt;']);&amp;nbsp; // this property doesn't seem to exist.&lt;BR /&gt;&lt;BR /&gt;var props = task.getProperties() // This function I got from the wiki doesn't return anything, it returned null.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help is appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&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>Wed, 02 Dec 2009 23:19:07 GMT</pubDate>
    <dc:creator>hyperation</dc:creator>
    <dc:date>2009-12-02T23:19:07Z</dc:date>
    <item>
      <title>[SOLVED]Take Ownership of a Pooled Task in Webscript/Java</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solved-take-ownership-of-a-pooled-task-in-webscript-java/m-p/211488#M164618</link>
      <description>Hi,I am trying to figure out how to create a webscript or java-backed webscript that can allow me to take ownership of a workflow pooled task.I've tried directly changing the "owner" property of the task, but it doesn't seem to be working.Attempted:var task = workflow.getTaskById(args['taskId']);&amp;nbsp; /</description>
      <pubDate>Wed, 02 Dec 2009 23:19:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solved-take-ownership-of-a-pooled-task-in-webscript-java/m-p/211488#M164618</guid>
      <dc:creator>hyperation</dc:creator>
      <dc:date>2009-12-02T23:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: [SOLVED]Take Ownership of a Pooled Task in Webscript/Java</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solved-take-ownership-of-a-pooled-task-in-webscript-java/m-p/211489#M164619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For those we are having the same problem.&amp;nbsp; I was able to find an alternative way using Java-backed Webscripts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using the WorkflowService:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;Map&amp;lt;QName, Serializable&amp;gt; params = new HashMap&amp;lt;QName, Serializable&amp;gt;();&lt;BR /&gt;params.put(ContentModel.PROP_OWNER, owner);&lt;BR /&gt;WorkflowTask updatedTask = workflowService.updateTask(taskId, params, null, null);&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&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, 03 Dec 2009 00:45:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solved-take-ownership-of-a-pooled-task-in-webscript-java/m-p/211489#M164619</guid>
      <dc:creator>hyperation</dc:creator>
      <dc:date>2009-12-03T00:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: [SOLVED]Take Ownership of a Pooled Task in Webscript/Java</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solved-take-ownership-of-a-pooled-task-in-webscript-java/m-p/211490#M164620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you managed it ? It's possible to you to give me some more hints how to do that ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm a little bit lost…not know if it's better to do a Java Class or just create&amp;nbsp; a webscript to do that….&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advanced.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Eduardo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jun 2010 10:07:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solved-take-ownership-of-a-pooled-task-in-webscript-java/m-p/211490#M164620</guid>
      <dc:creator>eferreira</dc:creator>
      <dc:date>2010-06-07T10:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: [SOLVED]Take Ownership of a Pooled Task in Webscript/Java</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solved-take-ownership-of-a-pooled-task-in-webscript-java/m-p/211491#M164621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure how this is done in Javascript webscript, but the if you write it as a Java-backed webscript you can use the WorkflowService to update the task owner (the code is provided on my previous post.). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&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, 10 Jun 2010 23:48:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solved-take-ownership-of-a-pooled-task-in-webscript-java/m-p/211491#M164621</guid>
      <dc:creator>hyperation</dc:creator>
      <dc:date>2010-06-10T23:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: [SOLVED]Take Ownership of a Pooled Task in Webscript/Java</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solved-take-ownership-of-a-pooled-task-in-webscript-java/m-p/211492#M164622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;could you post the entire java code?? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I found no examples….&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Raptus&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jun 2010 15:12:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solved-take-ownership-of-a-pooled-task-in-webscript-java/m-p/211492#M164622</guid>
      <dc:creator>raptus</dc:creator>
      <dc:date>2010-06-30T15:12:28Z</dc:date>
    </item>
  </channel>
</rss>

