<?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 Complete step on a Workflow programmatically in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/complete-step-on-a-workflow-programmatically/m-p/327819#M14820</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have a workflow and I would like to complete steps without any action of the user. That means istead of going inside each document to click on the finish button, I would prefer to implement one common button relating to a list of documents, which complete the same step for each document of the list.&lt;/P&gt;
&lt;P&gt;Is that possible and how can I achieve that task?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Charles&lt;/P&gt;</description>
    <pubDate>Tue, 20 Nov 2012 12:24:50 GMT</pubDate>
    <dc:creator>Charles_</dc:creator>
    <dc:date>2012-11-20T12:24:50Z</dc:date>
    <item>
      <title>Complete step on a Workflow programmatically</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/complete-step-on-a-workflow-programmatically/m-p/327819#M14820</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have a workflow and I would like to complete steps without any action of the user. That means istead of going inside each document to click on the finish button, I would prefer to implement one common button relating to a list of documents, which complete the same step for each document of the list.&lt;/P&gt;
&lt;P&gt;Is that possible and how can I achieve that task?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Charles&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2012 12:24:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/complete-step-on-a-workflow-programmatically/m-p/327819#M14820</guid>
      <dc:creator>Charles_</dc:creator>
      <dc:date>2012-11-20T12:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: Complete step on a Workflow programmatically</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/complete-step-on-a-workflow-programmatically/m-p/327820#M14821</link>
      <description>&lt;P&gt;You can use the following method from &lt;A href="https://github.com/nuxeo/nuxeo-platform-document-routing/blob/5.6.0/nuxeo-platform-document-routing-api/src/main/java/org/nuxeo/ecm/platform/routing/api/DocumentRoutingService.java"&gt;DocumentRoutingService&lt;/A&gt;:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;/**
* Ends a task
*
* @param session
* @param task
* @param data
* @param status name of the button clicked to submit the task form
*
* @since 5.6, was on RoutingTaskService before
*/
    void endTask(CoreSession session, Task task, Map&amp;lt;String, Object&amp;gt; data,
            String status) throws ClientException;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;where&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;the name of the button is the id of the button you configured on the Tab Form on the Studio side when configuring your task node.&lt;/LI&gt;
&lt;LI&gt;data is a hashMap containg all the nodes and workflow variables&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 28 Nov 2012 18:21:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/complete-step-on-a-workflow-programmatically/m-p/327820#M14821</guid>
      <dc:creator>Mariana_Cedica</dc:creator>
      <dc:date>2012-11-28T18:21:27Z</dc:date>
    </item>
  </channel>
</rss>

