<?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 Evaluation of Completion Condition variable in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/evaluation-of-completion-condition-variable/m-p/8088#M3677</link>
    <description>&lt;P&gt;Hi, I've got a workflow with a Sequential Multi Instance call to activiti.&lt;/P&gt;&lt;P&gt;In the called workflow I've got a variable used in gateways (lodgeSubmissions) and I want to use this variable in the Complete condition but it does not seems to work. If I put "lodgeSumbissions.equals("false")" in the complete condition activiti tells that cannot evaluate it, if I get it via execution.getVariable("lodgeSubmissions") it does seem to be present as an execution.&lt;/P&gt;&lt;P&gt;I read the user guide that has an example but does not explain how to obtain the variable in that condition.&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;P&gt;EDIT: from another reading of the user guide it seems that only certain variables can be used there (&lt;STRONG&gt;nrOfCompletedInstances&lt;/STRONG&gt;, &lt;STRONG&gt;nrOfActiveInstances,&lt;/STRONG&gt; &lt;STRONG&gt;nrOfInstances&lt;/STRONG&gt;) but with those I cannot use something that happens in the other subworkflows. Is that correct?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Tue, 10 Nov 2020 11:52:57 GMT</pubDate>
    <dc:creator>nicodio</dc:creator>
    <dc:date>2020-11-10T11:52:57Z</dc:date>
    <item>
      <title>Evaluation of Completion Condition variable</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/evaluation-of-completion-condition-variable/m-p/8088#M3677</link>
      <description>&lt;P&gt;Hi, I've got a workflow with a Sequential Multi Instance call to activiti.&lt;/P&gt;&lt;P&gt;In the called workflow I've got a variable used in gateways (lodgeSubmissions) and I want to use this variable in the Complete condition but it does not seems to work. If I put "lodgeSumbissions.equals("false")" in the complete condition activiti tells that cannot evaluate it, if I get it via execution.getVariable("lodgeSubmissions") it does seem to be present as an execution.&lt;/P&gt;&lt;P&gt;I read the user guide that has an example but does not explain how to obtain the variable in that condition.&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;P&gt;EDIT: from another reading of the user guide it seems that only certain variables can be used there (&lt;STRONG&gt;nrOfCompletedInstances&lt;/STRONG&gt;, &lt;STRONG&gt;nrOfActiveInstances,&lt;/STRONG&gt; &lt;STRONG&gt;nrOfInstances&lt;/STRONG&gt;) but with those I cannot use something that happens in the other subworkflows. Is that correct?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 11:52:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/evaluation-of-completion-condition-variable/m-p/8088#M3677</guid>
      <dc:creator>nicodio</dc:creator>
      <dc:date>2020-11-10T11:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluation of Completion Condition variable</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/evaluation-of-completion-condition-variable/m-p/8089#M3678</link>
      <description>&lt;P&gt;for conditions in activiti, you'll have to use expressions (&lt;SPAN&gt;UEL&lt;/SPAN&gt;) instead of code snippets. e.g. if&amp;nbsp;&lt;SPAN&gt;lodgeSubmissions is the variable you are trying to monitor on each task inside your multi-instance then the completion condition would be &lt;STRONG&gt;${!lodgeSubmissions} &lt;/STRONG&gt;or &lt;STRONG&gt;${lodgeSubmissions == false}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The reason why you don't get the variable is because of the variable scope being local to the task inside multi-instance.&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 13:17:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/evaluation-of-completion-condition-variable/m-p/8089#M3678</guid>
      <dc:creator>abbask01</dc:creator>
      <dc:date>2020-11-13T13:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluation of Completion Condition variable</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/evaluation-of-completion-condition-variable/m-p/8090#M3679</link>
      <description>&lt;P&gt;Hi, Abbas, thanks for the answer.&lt;/P&gt;&lt;P&gt;I'm using the variable inside the gateways in the sub task and it works as expected. But if I use it in the completion condition (eg &lt;SPAN&gt;&lt;STRONG&gt;${lodgeSubmissions.equals("false")}&lt;/STRONG&gt;)&lt;/SPAN&gt; of the container I get this error&lt;/P&gt;&lt;PRE&gt;org.activiti.engine.ActivitiException: Unknown property used in expression: ${lodgeSubmissions.equals("true")}
[...]
Caused by: org.activiti.engine.impl.javax.el.PropertyNotFoundException: Cannot resolve identifier 'lodgeSubmissions'&lt;/PRE&gt;&lt;P&gt;So my doubt is that I cannot do what I want to accomplish because the only variables that can be used inside the completion condition of a multi instance are only these three nrOfCompletedInstances, nrOfActiveInstances, nrOfInstances. Is that correct?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 09:06:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/evaluation-of-completion-condition-variable/m-p/8090#M3679</guid>
      <dc:creator>nicodio</dc:creator>
      <dc:date>2020-11-16T09:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluation of Completion Condition variable</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/evaluation-of-completion-condition-variable/m-p/8091#M3680</link>
      <description>&lt;P&gt;Basically all variables (under the process scope) can be used inside completion condition. As i mentioned earlier, you cannot access your variables because of their local scope inside the sub-process. you can use execution listener to set the variable explicitly&lt;/P&gt;&lt;PRE&gt;(execution.setVariable...)&lt;/PRE&gt;&lt;P&gt;the listener would run for each instance of the task, and the variable set can then be used inside the completion condition.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 09:19:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/evaluation-of-completion-condition-variable/m-p/8091#M3680</guid>
      <dc:creator>abbask01</dc:creator>
      <dc:date>2020-11-17T09:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluation of Completion Condition variable</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/evaluation-of-completion-condition-variable/m-p/8092#M3681</link>
      <description>&lt;P&gt;Please share example with bpmn and code&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 14:08:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/evaluation-of-completion-condition-variable/m-p/8092#M3681</guid>
      <dc:creator>sairaarif</dc:creator>
      <dc:date>2022-07-01T14:08:04Z</dc:date>
    </item>
  </channel>
</rss>

