<?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: Activiti : use custom process variable in JS in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/activiti-use-custom-process-variable-in-js/m-p/112912#M31433</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use execution.getVariable() and task.getVariable() to get value of workflow variables in script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your scrit you can use like below:&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;var newFoldersParentRef = execution.getVariable("mywf_newFoldersParent");&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vidhi&lt;/P&gt;&lt;P&gt;&lt;A href="http://contcentric.com" rel="nofollow noopener noreferrer"&gt;ContCentric&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Sep 2019 05:14:40 GMT</pubDate>
    <dc:creator>vidhipanchal</dc:creator>
    <dc:date>2019-09-02T05:14:40Z</dc:date>
    <item>
      <title>Activiti : use custom process variable in JS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-use-custom-process-variable-in-js/m-p/112911#M31432</link>
      <description>Hi,I try to use a process variable in a script of my workflow. Here's what I did :Model :&amp;lt;type name="mywf:startTask"&amp;gt;&amp;nbsp; &amp;lt;parent&amp;gt;wf:submitAdhocTask&amp;lt;/parent&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;properties&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property name="mywf:newFoldersParent"&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;type&amp;gt;d:noderef&amp;lt;/type&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;</description>
      <pubDate>Fri, 30 Aug 2019 10:05:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-use-custom-process-variable-in-js/m-p/112911#M31432</guid>
      <dc:creator>glpcq</dc:creator>
      <dc:date>2019-08-30T10:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti : use custom process variable in JS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-use-custom-process-variable-in-js/m-p/112912#M31433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use execution.getVariable() and task.getVariable() to get value of workflow variables in script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your scrit you can use like below:&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;var newFoldersParentRef = execution.getVariable("mywf_newFoldersParent");&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vidhi&lt;/P&gt;&lt;P&gt;&lt;A href="http://contcentric.com" rel="nofollow noopener noreferrer"&gt;ContCentric&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2019 05:14:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-use-custom-process-variable-in-js/m-p/112912#M31433</guid>
      <dc:creator>vidhipanchal</dc:creator>
      <dc:date>2019-09-02T05:14:40Z</dc:date>
    </item>
  </channel>
</rss>

