<?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: Task Operation API calls in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/task-operation-api-calls/m-p/23851#M11579</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can create a simple approve/reject flow using a exclusive gateway:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;..&lt;BR /&gt;&lt;BR /&gt;&amp;lt;exclusiveGateway id="exclusiveGw" name="Exclusive Gateway" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;lt;sequenceFlow id="flow2" sourceRef="exclusiveGw" targetRef="approvedTarget"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;conditionExpression xsi:type="tFormalExpression"&amp;gt;${approved}&amp;lt;/conditionExpression&amp;gt;&lt;BR /&gt;&amp;lt;/sequenceFlow&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;lt;sequenceFlow id="flow3" sourceRef="exclusiveGw" targetRef="rejectedTarget"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;conditionExpression xsi:type="tFormalExpression"&amp;gt;${!approved}&amp;lt;/conditionExpression&amp;gt;&lt;BR /&gt;&amp;lt;/sequenceFlow&amp;gt;&lt;BR /&gt;&lt;BR /&gt;..&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;To finish the task using TaskService, you can do this to approve/reject:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;Map&amp;lt;String, Object&amp;gt; variables = new HashMap&amp;lt;String, Object&amp;gt;();&lt;BR /&gt;variables.put("approved", Boolean.FALSE);&lt;BR /&gt;&lt;BR /&gt;// Finish the task, passing the approved variable&lt;BR /&gt;taskService.completeTask(task.getId(), variables);&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Does this answer your question?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Dec 2010 08:14:46 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2010-12-29T08:14:46Z</dc:date>
    <item>
      <title>Task Operation API calls</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/task-operation-api-calls/m-p/23850#M11578</link>
      <description>Hi all,How one would initiate perform task action using the API through the task service interface? The use case here is a user would have initiated an approval or rejection action and I'd like to notify the execution to apply the action to the task and therefore the process instance will continue o</description>
      <pubDate>Wed, 29 Dec 2010 02:08:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/task-operation-api-calls/m-p/23850#M11578</guid>
      <dc:creator>hmesha</dc:creator>
      <dc:date>2010-12-29T02:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Task Operation API calls</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/task-operation-api-calls/m-p/23851#M11579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can create a simple approve/reject flow using a exclusive gateway:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;..&lt;BR /&gt;&lt;BR /&gt;&amp;lt;exclusiveGateway id="exclusiveGw" name="Exclusive Gateway" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;lt;sequenceFlow id="flow2" sourceRef="exclusiveGw" targetRef="approvedTarget"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;conditionExpression xsi:type="tFormalExpression"&amp;gt;${approved}&amp;lt;/conditionExpression&amp;gt;&lt;BR /&gt;&amp;lt;/sequenceFlow&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;lt;sequenceFlow id="flow3" sourceRef="exclusiveGw" targetRef="rejectedTarget"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;conditionExpression xsi:type="tFormalExpression"&amp;gt;${!approved}&amp;lt;/conditionExpression&amp;gt;&lt;BR /&gt;&amp;lt;/sequenceFlow&amp;gt;&lt;BR /&gt;&lt;BR /&gt;..&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;To finish the task using TaskService, you can do this to approve/reject:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;Map&amp;lt;String, Object&amp;gt; variables = new HashMap&amp;lt;String, Object&amp;gt;();&lt;BR /&gt;variables.put("approved", Boolean.FALSE);&lt;BR /&gt;&lt;BR /&gt;// Finish the task, passing the approved variable&lt;BR /&gt;taskService.completeTask(task.getId(), variables);&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Does this answer your question?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Dec 2010 08:14:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/task-operation-api-calls/m-p/23851#M11579</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2010-12-29T08:14:46Z</dc:date>
    </item>
  </channel>
</rss>

