<?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: Error in evaluating expressions when run as unit test in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/error-in-evaluating-expressions-when-run-as-unit-test/m-p/233209#M186339</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Martin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Actually, I am not using any bean with name 'activiti_flowConditionsBean'. This is internally inserted by activiti when the condition is configured using 'Simple' or 'Advanced' tab.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please see the images in the below links:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) &lt;/SPAN&gt;&lt;A href="https://s11.postimg.io/5o6nnsg5f/No_Error.png" rel="nofollow noopener noreferrer"&gt;https://s11.postimg.io/5o6nnsg5f/No_Error.png&lt;/A&gt;&lt;SPAN&gt; If I configure condition as expression (as shown in image), it works from normal flow execution as well as unit test execution&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) &lt;/SPAN&gt;&lt;A href="https://s22.postimg.io/di9iaivy9/Error.png" rel="nofollow noopener noreferrer"&gt;https://s22.postimg.io/di9iaivy9/Error.png&lt;/A&gt;&lt;SPAN&gt; If I configure condition using Simple or Advanced tab (as shown in image), it works from normal flow execution, but fails from unit test execution (since it encounters activiti_flowConditionsBean missing error)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The normal flow is executed using ACTVITI-REST interface to start process instance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The unit test is done using &lt;/SPAN&gt;&lt;A href="https://github.com/Activiti/activiti-unit-test-template.git" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/activiti-unit-test-template.git&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ProcessInstance processInstance = activitiRule.getRuntimeService().startProcessInstanceByKeyAndTenantId("XYZ",variables,"tenant_1");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please suggest any possible solution. Also, let me know if anything else is required&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Sep 2016 13:16:44 GMT</pubDate>
    <dc:creator>vickyc1</dc:creator>
    <dc:date>2016-09-12T13:16:44Z</dc:date>
    <item>
      <title>Error in evaluating expressions when run as unit test</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-in-evaluating-expressions-when-run-as-unit-test/m-p/233206#M186336</link>
      <description>Hello!I am facing strange issue, wherein when I have the flow condition configured as simple expression, then the unit testing works. However, when I configure flow condition as Simple or Advanced condition using flow variables, then it gives error as org.activiti.engine.ActivitiException: Unknown p</description>
      <pubDate>Fri, 09 Sep 2016 12:57:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-in-evaluating-expressions-when-run-as-unit-test/m-p/233206#M186336</guid>
      <dc:creator>vickyc1</dc:creator>
      <dc:date>2016-09-09T12:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error in evaluating expressions when run as unit test</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-in-evaluating-expressions-when-run-as-unit-test/m-p/233207#M186337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Working:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-&amp;lt;conditionExpression xsi:type="tFormalExpression"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;![CDATA[${FieldValidationStatus == 'SUCCESS'}]]&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/conditionExpression&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-&amp;lt;conditionExpression xsi:type="tFormalExpression"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;![CDATA[${(!(activiti_flowConditionsBean.isEmpty(execution, 'ProductId')) )and(activiti_flowConditionsBean.exists(execution, 'ProductId') &amp;amp;&amp;amp; ProductId == 'ABC')}]]&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/conditionExpression&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 13:33:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-in-evaluating-expressions-when-run-as-unit-test/m-p/233207#M186337</guid>
      <dc:creator>vickyc1</dc:creator>
      <dc:date>2016-09-09T13:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error in evaluating expressions when run as unit test</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-in-evaluating-expressions-when-run-as-unit-test/m-p/233208#M186338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Vicky,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;activiti_flowConditionsBean&lt;/CODE&gt;&lt;SPAN&gt; is missing. Add the bean to the configuration. It would be better to post a ling to the whole project with your failing jUnit test.&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 07:25:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-in-evaluating-expressions-when-run-as-unit-test/m-p/233208#M186338</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-09-12T07:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: Error in evaluating expressions when run as unit test</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-in-evaluating-expressions-when-run-as-unit-test/m-p/233209#M186339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Martin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Actually, I am not using any bean with name 'activiti_flowConditionsBean'. This is internally inserted by activiti when the condition is configured using 'Simple' or 'Advanced' tab.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please see the images in the below links:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) &lt;/SPAN&gt;&lt;A href="https://s11.postimg.io/5o6nnsg5f/No_Error.png" rel="nofollow noopener noreferrer"&gt;https://s11.postimg.io/5o6nnsg5f/No_Error.png&lt;/A&gt;&lt;SPAN&gt; If I configure condition as expression (as shown in image), it works from normal flow execution as well as unit test execution&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) &lt;/SPAN&gt;&lt;A href="https://s22.postimg.io/di9iaivy9/Error.png" rel="nofollow noopener noreferrer"&gt;https://s22.postimg.io/di9iaivy9/Error.png&lt;/A&gt;&lt;SPAN&gt; If I configure condition using Simple or Advanced tab (as shown in image), it works from normal flow execution, but fails from unit test execution (since it encounters activiti_flowConditionsBean missing error)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The normal flow is executed using ACTVITI-REST interface to start process instance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The unit test is done using &lt;/SPAN&gt;&lt;A href="https://github.com/Activiti/activiti-unit-test-template.git" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/activiti-unit-test-template.git&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ProcessInstance processInstance = activitiRule.getRuntimeService().startProcessInstanceByKeyAndTenantId("XYZ",variables,"tenant_1");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please suggest any possible solution. Also, let me know if anything else is required&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 13:16:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-in-evaluating-expressions-when-run-as-unit-test/m-p/233209#M186339</guid>
      <dc:creator>vickyc1</dc:creator>
      <dc:date>2016-09-12T13:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error in evaluating expressions when run as unit test</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-in-evaluating-expressions-when-run-as-unit-test/m-p/233210#M186340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Martin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Actually, I am not using any bean with name 'activiti_flowConditionsBean'. This is internally inserted by activiti when the condition is configured using 'Simple' or 'Advanced' tab.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please see the images in the below links:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) &lt;/SPAN&gt;&lt;A href="https://s11.postimg.io/5o6nnsg5f/No_Error.png" rel="nofollow noopener noreferrer"&gt;https://s11.postimg.io/5o6nnsg5f/No_Error.png&lt;/A&gt;&lt;SPAN&gt; If I configure condition as expression (as shown in image), it works from normal flow execution as well as unit test execution&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) &lt;/SPAN&gt;&lt;A href="https://s22.postimg.io/di9iaivy9/Error.png" rel="nofollow noopener noreferrer"&gt;https://s22.postimg.io/di9iaivy9/Error.png&lt;/A&gt;&lt;SPAN&gt; If I configure condition using Simple or Advanced tab (as shown in image), it works from normal flow execution, but fails from unit test execution (since it encounters activiti_flowConditionsBean missing error)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The normal flow is executed using ACTVITI-REST interface to start process instance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The unit test is done using &lt;/SPAN&gt;&lt;A href="https://github.com/Activiti/activiti-unit-test-template.git" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/activiti-unit-test-template.git&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ProcessInstance processInstance = activitiRule.getRuntimeService().startProcessInstanceByKeyAndTenantId("XYZ",variables,"tenant_1");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please suggest any possible solution. Also, let me know if anything else is required&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 13:23:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-in-evaluating-expressions-when-run-as-unit-test/m-p/233210#M186340</guid>
      <dc:creator>vickyc1</dc:creator>
      <dc:date>2016-09-12T13:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: Error in evaluating expressions when run as unit test</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-in-evaluating-expressions-when-run-as-unit-test/m-p/233211#M186341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Martin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Actually, I am not using any bean with name 'activiti_flowConditionsBean'. This is internally inserted by activiti when the condition is configured using 'Simple' or 'Advanced' tab.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please see the images in the below links:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) &lt;/SPAN&gt;&lt;A href="https://s11.postimg.io/5o6nnsg5f/No_Error.png" rel="nofollow noopener noreferrer"&gt;https://s11.postimg.io/5o6nnsg5f/No_Error.png&lt;/A&gt;&lt;SPAN&gt; If I configure condition as expression (as shown in image), it works from normal flow execution as well as unit test execution&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) &lt;/SPAN&gt;&lt;A href="https://s22.postimg.io/di9iaivy9/Error.png" rel="nofollow noopener noreferrer"&gt;https://s22.postimg.io/di9iaivy9/Error.png&lt;/A&gt;&lt;SPAN&gt; If I configure condition using Simple or Advanced tab (as shown in image), it works from normal flow execution, but fails from unit test execution (since it encounters activiti_flowConditionsBean missing error)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The normal flow is executed using ACTVITI-REST interface to start process instance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The unit test is done using &lt;/SPAN&gt;&lt;A href="https://github.com/Activiti/activiti-unit-test-template.git" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/activiti-unit-test-template.git&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ProcessInstance processInstance = activitiRule.getRuntimeService().startProcessInstanceByKeyAndTenantId("XYZ",variables,"tenant_1");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please suggest any possible solution. Also, let me know if anything else is required&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 13:59:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-in-evaluating-expressions-when-run-as-unit-test/m-p/233211#M186341</guid>
      <dc:creator>vickyc1</dc:creator>
      <dc:date>2016-09-12T13:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error in evaluating expressions when run as unit test</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-in-evaluating-expressions-when-run-as-unit-test/m-p/233212#M186342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you post the link to your jUnit test?&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 19:38:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-in-evaluating-expressions-when-run-as-unit-test/m-p/233212#M186342</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-09-12T19:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error in evaluating expressions when run as unit test</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-in-evaluating-expressions-when-run-as-unit-test/m-p/233213#M186343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Martin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The source code is inside enterprise gitlab server, hence I cant share the exact link. However, I have attached all the files used in unit test.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As a reference, attaching images of activiti UI:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) &lt;/SPAN&gt;&lt;A href="https://s11.postimg.io/5o6nnsg5f/No_Error.png" rel="nofollow noopener noreferrer"&gt;https://s11.postimg.io/5o6nnsg5f/No_Error.png&lt;/A&gt;&lt;SPAN&gt; If I configure condition as expression (as shown in image), it works from normal flow execution as well as unit test execution&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) &lt;/SPAN&gt;&lt;A href="https://s22.postimg.io/di9iaivy9/Error.png" rel="nofollow noopener noreferrer"&gt;https://s22.postimg.io/di9iaivy9/Error.png&lt;/A&gt;&lt;SPAN&gt; If I configure condition using Simple or Advanced tab (as shown in image), it works from normal flow execution, but fails from unit test execution (since it encounters activiti_flowConditionsBean missing error)&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2016 13:19:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-in-evaluating-expressions-when-run-as-unit-test/m-p/233213#M186343</guid>
      <dc:creator>vickyc1</dc:creator>
      <dc:date>2016-09-14T13:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error in evaluating expressions when run as unit test</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-in-evaluating-expressions-when-run-as-unit-test/m-p/233214#M186344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can any1 help please?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2016 13:22:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-in-evaluating-expressions-when-run-as-unit-test/m-p/233214#M186344</guid>
      <dc:creator>vickyc1</dc:creator>
      <dc:date>2016-09-19T13:22:10Z</dc:date>
    </item>
  </channel>
</rss>

