<?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: How can I get process variables in conditionExpression? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-process-variables-in-conditionexpression/m-p/13918#M5911</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Below an extract from the userguide, showing 3 different flows out of the gateway, which depend on process-variable 'input'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&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="theTask1"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;conditionExpression xsi:type="tFormalExpression"&amp;gt;${input == 1}&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="theTask2"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;conditionExpression xsi:type="tFormalExpression"&amp;gt;${input == 2}&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="flow4" sourceRef="exclusiveGw" targetRef="theTask3"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;conditionExpression xsi:type="tFormalExpression"&amp;gt;${input == 3}&amp;lt;/conditionExpression&amp;gt;&lt;BR /&gt;&amp;lt;/sequenceFlow&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Mar 2011 06:29:26 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2011-03-29T06:29:26Z</dc:date>
    <item>
      <title>How can I get process variables in conditionExpression?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-process-variables-in-conditionexpression/m-p/13917#M5910</link>
      <description>Hello forum,my process should run a certain path dependent on a value of one process variable.How can I implemet this with exclusive gateway and conditionExpression?I didn't fount no example in UserGuide… &lt;IMG id="smileysad" class="emoticon emoticon-smileysad" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;Kind regards.Alexej</description>
      <pubDate>Mon, 28 Mar 2011 15:36:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-process-variables-in-conditionexpression/m-p/13917#M5910</guid>
      <dc:creator>al_lv</dc:creator>
      <dc:date>2011-03-28T15:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get process variables in conditionExpression?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-process-variables-in-conditionexpression/m-p/13918#M5911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Below an extract from the userguide, showing 3 different flows out of the gateway, which depend on process-variable 'input'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&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="theTask1"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;conditionExpression xsi:type="tFormalExpression"&amp;gt;${input == 1}&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="theTask2"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;conditionExpression xsi:type="tFormalExpression"&amp;gt;${input == 2}&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="flow4" sourceRef="exclusiveGw" targetRef="theTask3"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;conditionExpression xsi:type="tFormalExpression"&amp;gt;${input == 3}&amp;lt;/conditionExpression&amp;gt;&lt;BR /&gt;&amp;lt;/sequenceFlow&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2011 06:29:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-process-variables-in-conditionexpression/m-p/13918#M5911</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-03-29T06:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get process variables in conditionExpression?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-process-variables-in-conditionexpression/m-p/13919#M5912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;oh! sorry, I was satisfied $input variable sould be defined in the process_defintion.bpmn20.xml and not programmatically on the start of the process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will try this way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another question:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;can I use Strings in conditionExpressio like this:${transition == "siebel"} or should it be integer as in the example?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2011 09:30:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-process-variables-in-conditionexpression/m-p/13919#M5912</guid>
      <dc:creator>al_lv</dc:creator>
      <dc:date>2011-03-30T09:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get process variables in conditionExpression?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-process-variables-in-conditionexpression/m-p/13920#M5913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use string, thats no problem. Might have to do ${stringVar.equals('myValue')}, not sure what the UEL-spec says…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2011 10:33:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-process-variables-in-conditionexpression/m-p/13920#M5913</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-03-30T10:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get process variables in conditionExpression?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-process-variables-in-conditionexpression/m-p/13921#M5914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;how get input value without service task? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;${input == 3}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 14:59:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-process-variables-in-conditionexpression/m-p/13921#M5914</guid>
      <dc:creator>mghb2009</dc:creator>
      <dc:date>2014-12-16T14:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get process variables in conditionExpression?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-process-variables-in-conditionexpression/m-p/13922#M5915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am doing my first wf in activiti 5.19 I have the following Exclusive gateway. I need to use a string compare in my expression.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But i am not able to make it work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;heres what i have in the gateway&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;exclusiveGateway id="TechnicalApprovalStatusCheck" name="Technical Approval Status Check"&amp;gt;&amp;lt;/exclusiveGateway&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="techapproval" name="Technical Approved" sourceRef="TechnicalApprovalStatusCheck" targetRef="businessValidation"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="techReject" name="Technical Rejection" sourceRef="TechnicalApprovalStatusCheck" targetRef="RequestToolCompleted"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="techOnhold" name="Technical On Hold" sourceRef="TechnicalApprovalStatusCheck" targetRef="technicalValidation"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;conditionExpression xsi:type="tFormalExpression"&amp;gt;${stageCount == 2}&amp;gt;&amp;lt;/conditionExpression&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/sequenceFlow&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;conditionExpression xsi:type="tFormalExpression"&amp;gt;${state.equals('rejected')}&amp;lt;/conditionExpression&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/sequenceFlow&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Irrespective what i try in the process variable use the execution takes me to the task 'businessValidation'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What am i doing wrong ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2016 11:56:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-process-variables-in-conditionexpression/m-p/13922#M5915</guid>
      <dc:creator>sunilkumartk</dc:creator>
      <dc:date>2016-04-28T11:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get process variables in conditionExpression?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-process-variables-in-conditionexpression/m-p/13923#M5916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Sunil,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;jUnit test would help (&lt;/SPAN&gt;&lt;A href="https://forums.activiti.org/content/sticky-how-write-unit-test" rel="nofollow noopener noreferrer"&gt;https://forums.activiti.org/content/sticky-how-write-unit-test&lt;/A&gt;&lt;SPAN&gt;), but I would say that the first sequence flow which is evaluated to the true is taken. (in your case businessValidation). Use default flow or condition.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2016 06:25:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-process-variables-in-conditionexpression/m-p/13923#M5916</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-05-02T06:25:55Z</dc:date>
    </item>
  </channel>
</rss>

