<?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 How to fill in the comment column in the past workflow tasks listing? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-fill-in-the-comment-column-in-the-past-workflow-tasks/m-p/324565#M11566</link>
    <description>&lt;P&gt;When running a workflow, people are able to see a "past workflow tasks" block in the document's Workflow tab.
&lt;span class="lia-inline-image-display-wrapper" image-alt="Past Workflow Tasks"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1975iB6BD117991E4AE98/image-size/large?v=v2&amp;amp;px=999" role="button" title="Past Workflow Tasks" alt="Past Workflow Tasks" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I'd like to customize what people see in the "Comments" column. How can I do that?&lt;/P&gt;</description>
    <pubDate>Tue, 02 Feb 2016 15:48:27 GMT</pubDate>
    <dc:creator>Bertrand_Chauvi</dc:creator>
    <dc:date>2016-02-02T15:48:27Z</dc:date>
    <item>
      <title>How to fill in the comment column in the past workflow tasks listing?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-fill-in-the-comment-column-in-the-past-workflow-tasks/m-p/324565#M11566</link>
      <description>&lt;P&gt;When running a workflow, people are able to see a "past workflow tasks" block in the document's Workflow tab.
&lt;span class="lia-inline-image-display-wrapper" image-alt="Past Workflow Tasks"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1975iB6BD117991E4AE98/image-size/large?v=v2&amp;amp;px=999" role="button" title="Past Workflow Tasks" alt="Past Workflow Tasks" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I'd like to customize what people see in the "Comments" column. How can I do that?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 15:48:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-fill-in-the-comment-column-in-the-past-workflow-tasks/m-p/324565#M11566</guid>
      <dc:creator>Bertrand_Chauvi</dc:creator>
      <dc:date>2016-02-02T15:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to fill in the comment column in the past workflow tasks listing?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-fill-in-the-comment-column-in-the-past-workflow-tasks/m-p/324566#M11567</link>
      <description>&lt;P&gt;Dear me,&lt;/P&gt;
&lt;P&gt;To add text in the "Comments" column, you need to do the following:
1- In your workflow node, add a node variable named "comment"
2- Use this variable in your form&lt;/P&gt;
&lt;P&gt;The workflow engine will be looking for this specific variable to display it.&lt;/P&gt;
&lt;P&gt;Please note however that node variables have a limited scope compared to workflow variables. You can only use them in the output chain, not in the transition chain ; the workflow engine already left the node when executing the transition chain.&lt;/P&gt;
&lt;P&gt;In case you are already using workflow variables to store your comments, you can use the "Workflow Context &amp;gt; Set Node Variable" operation to copy its content over during the output chain.&lt;/P&gt;
&lt;P&gt;Another difficulty you might run into is checking the button the user pressed, as the output chain is executed no matter which transition(s) the workflow engine will follow. A possible solution is to use the "Execution Flow &amp;gt; Run Chain" operation and put a ternary operator in the id parameter. Something like:&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;@{NodeVariables["button"] == "submitButtonId" ? 'executeThisChainIdWhenSubmitButtonIdIsPressed' : 'doNothingChainId'}&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;where "doNothingChainId" is a chain that exists but does nothing effective. Starting from Nuxeo Platform LTS 2015 you do not need to resort to such a trick however: you can create an automation script instead to do this in a more elegant fashion. If you wonder what I'm talking about, I would highly recommend you to take a look at &lt;A href="https://university.nuxeo.io/nuxeo/university/#!/course/applying-business-logic/implementing-operation-automation-scripting"&gt;Nuxeo University's video about automation scripting&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 15:54:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-fill-in-the-comment-column-in-the-past-workflow-tasks/m-p/324566#M11567</guid>
      <dc:creator>Bertrand_Chauvi</dc:creator>
      <dc:date>2016-02-02T15:54:33Z</dc:date>
    </item>
  </channel>
</rss>

