<?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 Getting the value of a Form Outcome in a script in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/getting-the-value-of-a-form-outcome-in-a-script/m-p/36571#M15422</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm building my process using Activiti Developer. &amp;nbsp;On one sequence flow condition off my exclusive gateway, I'd need a condition for:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;${ formoutcome == "a value" &amp;amp;&amp;amp; (processvar1 == true OR processvar2 == true) }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To do this, I'm thinking that I need to write an Expression for the sequence flow. &amp;nbsp;How do I reference the value of a form outcome either in the Expression directly or using javascript in a task listener complete event&amp;nbsp;to set a process variable that can then be used in the Expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 May 2017 23:57:05 GMT</pubDate>
    <dc:creator>lsharman</dc:creator>
    <dc:date>2017-05-17T23:57:05Z</dc:date>
    <item>
      <title>Getting the value of a Form Outcome in a script</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/getting-the-value-of-a-form-outcome-in-a-script/m-p/36571#M15422</link>
      <description>I'm building my process using Activiti Developer. &amp;nbsp;On one sequence flow condition off my exclusive gateway, I'd need a condition for:&amp;nbsp;${ formoutcome == "a value" &amp;amp;&amp;amp; (processvar1 == true OR processvar2 == true) }To do this, I'm thinking that I need to write an Expression for the sequence flow</description>
      <pubDate>Wed, 17 May 2017 23:57:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/getting-the-value-of-a-form-outcome-in-a-script/m-p/36571#M15422</guid>
      <dc:creator>lsharman</dc:creator>
      <dc:date>2017-05-17T23:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the value of a Form Outcome in a script</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/getting-the-value-of-a-form-outcome-in-a-script/m-p/36572#M15423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should be able to use the "Advanced" flow condition tab (see below):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://connect.hyland.com/legacyfs/online/alfresco/14027_pastedImage_1.png" style="width: 620px; height: 427px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this option you can select form outcomes as well as variables as well as conditions.&lt;/P&gt;&lt;P&gt;Now, your specific expression is a little more complex because of the parenthesis. For this I would use a listener to perform the processvar OR logic and create a single variable to use in the above form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way, the above is from version 1.6.1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 15:52:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/getting-the-value-of-a-form-outcome-in-a-script/m-p/36572#M15423</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-05-18T15:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the value of a Form Outcome in a script</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/getting-the-value-of-a-form-outcome-in-a-script/m-p/36573#M15424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response. &amp;nbsp;I'm using the Advanced tab throughout my process flow, but as you noted, it doesn't support the parenthesis. &amp;nbsp;I reworked my process flow to get around this issue. &amp;nbsp;I also just found your post from Jan 16,2017 on using form&amp;lt;formid&amp;gt;outcome to retrieve the value of a custom outcome. &amp;nbsp;For future knowledge, I'll try that in a sample flow.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2017 21:15:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/getting-the-value-of-a-form-outcome-in-a-script/m-p/36573#M15424</guid>
      <dc:creator>lsharman</dc:creator>
      <dc:date>2017-05-19T21:15:29Z</dc:date>
    </item>
  </channel>
</rss>

