<?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: Multi-instance cardinality does not work with a variable in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/multi-instance-cardinality-does-not-work-with-a-variable/m-p/222729#M175859</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think you missed this line in the jUNit test:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;ProcessInstance processInstance = activitiRule.getRuntimeService().startProcessInstanceByKey("trainingProcess", variables);&lt;BR /&gt;&lt;/CODE&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>Sun, 15 May 2016 19:47:34 GMT</pubDate>
    <dc:creator>martin_grofcik</dc:creator>
    <dc:date>2016-05-15T19:47:34Z</dc:date>
    <item>
      <title>Multi-instance cardinality does not work with a variable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multi-instance-cardinality-does-not-work-with-a-variable/m-p/222722#M175852</link>
      <description>I have the next xml of my bpmn task where I am trying that the loopcounter be variable (watch the line &amp;lt;loopCardinality&amp;gt;${loopCounter}&amp;lt;/loopCardinality&amp;gt; ) And This variable is part of the start event form. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;startEvent id="startevent1" name="Start"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;extensionElements&amp;amp;g</description>
      <pubDate>Sat, 07 May 2016 00:46:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multi-instance-cardinality-does-not-work-with-a-variable/m-p/222722#M175852</guid>
      <dc:creator>kecondezo</dc:creator>
      <dc:date>2016-05-07T00:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Multi-instance cardinality does not work with a variable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multi-instance-cardinality-does-not-work-with-a-variable/m-p/222723#M175853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;By the way I am using the 5.19.0 release.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2016 23:51:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multi-instance-cardinality-does-not-work-with-a-variable/m-p/222723#M175853</guid>
      <dc:creator>kecondezo</dc:creator>
      <dc:date>2016-05-09T23:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: Multi-instance cardinality does not work with a variable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multi-instance-cardinality-does-not-work-with-a-variable/m-p/222724#M175854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you create jUnit test please?&lt;/SPAN&gt;&lt;BR /&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;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>Tue, 10 May 2016 08:35:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multi-instance-cardinality-does-not-work-with-a-variable/m-p/222724#M175854</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-05-10T08:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: Multi-instance cardinality does not work with a variable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multi-instance-cardinality-does-not-work-with-a-variable/m-p/222725#M175855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Where is the new jira linkg, the link that is posted by&amp;nbsp; Joe Barrez is deprecated (codehouse servicess are not enable).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the zip file but I do not know where to upload it due to this page does not support it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I tried to run the unit test, there this error message, even when the xml has been deployed in the activiti explorer without problems:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Unknown property used in expression: ${loopCounter}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;See the full trace in the attached file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2016 22:03:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multi-instance-cardinality-does-not-work-with-a-variable/m-p/222725#M175855</guid>
      <dc:creator>kecondezo</dc:creator>
      <dc:date>2016-05-12T22:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Multi-instance cardinality does not work with a variable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multi-instance-cardinality-does-not-work-with-a-variable/m-p/222726#M175856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have created the jira ticket with the jUnit test &lt;/SPAN&gt;&lt;A href="https://activiti.atlassian.net/browse/ACT-4173" rel="nofollow noopener noreferrer"&gt;https://activiti.atlassian.net/browse/ACT-4173&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 May 2016 12:34:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multi-instance-cardinality-does-not-work-with-a-variable/m-p/222726#M175856</guid>
      <dc:creator>kecondezo</dc:creator>
      <dc:date>2016-05-15T12:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Multi-instance cardinality does not work with a variable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multi-instance-cardinality-does-not-work-with-a-variable/m-p/222727#M175857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi kecondezo,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The issue is &lt;/SPAN&gt;&lt;CODE&gt;loopCounter&lt;/CODE&gt;&lt;SPAN&gt; is reserved key word by default (see doc). You have two options: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- rename loop variable&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- change default loop variable name.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I changed test to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt; public void test() {&lt;BR /&gt;&amp;nbsp; Date date = new Date();&lt;BR /&gt;&amp;nbsp; Map&amp;lt;String, Object&amp;gt; variables = new HashMap&amp;lt;String, Object&amp;gt;();&lt;BR /&gt;&amp;nbsp; variables.put("customerName", "Calimba");&lt;BR /&gt;&amp;nbsp; variables.put("customerEmail",&lt;BR /&gt;&amp;nbsp; "kecondezo@gmail.com");&lt;BR /&gt;&amp;nbsp; variables.put("trainingTopic", "Activiti");&lt;BR /&gt;&amp;nbsp; variables.put("trainingDate", date);&lt;BR /&gt;&amp;nbsp; variables.put("trainerName", "Kennyman");&lt;BR /&gt;&amp;nbsp; variables.put("trainerMailId","kecondezo@gmail.com");&lt;BR /&gt;&amp;nbsp; variables.put("loopC",5);&lt;BR /&gt;&amp;nbsp; //ProcessInstance processInstance = activitiRule.getRuntimeService().startProcessInstanceByKey("my-process");&lt;BR /&gt;&amp;nbsp; ProcessInstance processInstance = activitiRule.getRuntimeService().startProcessInstanceByKey("trainingProcess", variables);&lt;BR /&gt;&amp;nbsp; assertNotNull(processInstance);&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; Task task = activitiRule.getTaskService().createTaskQuery().singleResult();&lt;BR /&gt;&amp;nbsp; assertEquals("Business Development Executive", task.getName());&lt;BR /&gt; }&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;and process definition:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;multiInstanceLoopCharacteristics isSequential="true"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;loopCardinality&amp;gt;${loopC}&amp;lt;/loopCardinality&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/multiInstanceLoopCharacteristics&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;The test has passed.&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>Sun, 15 May 2016 16:04:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multi-instance-cardinality-does-not-work-with-a-variable/m-p/222727#M175857</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-05-15T16:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Multi-instance cardinality does not work with a variable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multi-instance-cardinality-does-not-work-with-a-variable/m-p/222728#M175858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Martin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I change the name of the variable for&amp;nbsp; loopC, in the JUnit test I am still getting the same message&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt; Unknown property used in expression: ${loopC} &amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but when I tried the change directly into Activity Explorer it works fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So can you attach your project into Jira to see what is wrong with my JUnit environment?. This is not the first time the JUnit thorows this error and the model works fine in the Activiti Explorer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 May 2016 17:50:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multi-instance-cardinality-does-not-work-with-a-variable/m-p/222728#M175858</guid>
      <dc:creator>kecondezo</dc:creator>
      <dc:date>2016-05-15T17:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Multi-instance cardinality does not work with a variable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multi-instance-cardinality-does-not-work-with-a-variable/m-p/222729#M175859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think you missed this line in the jUNit test:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;ProcessInstance processInstance = activitiRule.getRuntimeService().startProcessInstanceByKey("trainingProcess", variables);&lt;BR /&gt;&lt;/CODE&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>Sun, 15 May 2016 19:47:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multi-instance-cardinality-does-not-work-with-a-variable/m-p/222729#M175859</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-05-15T19:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Multi-instance cardinality does not work with a variable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multi-instance-cardinality-does-not-work-with-a-variable/m-p/222730#M175860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yeah!!! you are right, thanks for the explanation!! everithing goes finel.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 May 2016 23:53:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multi-instance-cardinality-does-not-work-with-a-variable/m-p/222730#M175860</guid>
      <dc:creator>kecondezo</dc:creator>
      <dc:date>2016-05-15T23:53:49Z</dc:date>
    </item>
  </channel>
</rss>

