<?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 using form variables  in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/multi-instance-using-form-variables/m-p/242250#M195380</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks so much, Hari! Now it's clear! &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Feb 2016 11:57:00 GMT</pubDate>
    <dc:creator>kelyannegualber</dc:creator>
    <dc:date>2016-02-02T11:57:00Z</dc:date>
    <item>
      <title>Multi instance using form variables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multi-instance-using-form-variables/m-p/242246#M195376</link>
      <description>Hi!I'm trying to get a job becomes multiple instance using the "collection" object people. The task has a form that needs to be filled with person data and this data must be related to the person class variables (name, age, sex ..).I am very grateful if anyone can help me!</description>
      <pubDate>Mon, 01 Feb 2016 12:30:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multi-instance-using-form-variables/m-p/242246#M195376</guid>
      <dc:creator>kelyannegualber</dc:creator>
      <dc:date>2016-02-01T12:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Multi instance using form variables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multi-instance-using-form-variables/m-p/242247#M195377</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;From the above, I understood that you want to call a sub process for every person in the collection. For that you can simply right click on the Call Activiti and open up the multi instance properties. Say for example your collection name is Persons, set it there and for Element variable you may set is as Person.&amp;nbsp; In the main config, make sure you map Person which you have set as Element Variable to the sub process variable. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2016 12:59:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multi-instance-using-form-variables/m-p/242247#M195377</guid>
      <dc:creator>hari</dc:creator>
      <dc:date>2016-02-01T12:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Multi instance using form variables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multi-instance-using-form-variables/m-p/242248#M195378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Right! I am using these same properties multi instance you mentioned.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In my testing, I'm adding up the values of variables in a HashMap using variables.put ("name", "Kelyanne"), for example. However, I am struggling to set this value to a person object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Person person = new Person ();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;person.setName ("Kelyanne");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My question is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How to set the values that the user types on the form to the variables of the Person class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The truth is that I am still beginner and not yet know the best solutions. &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2016 13:33:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multi-instance-using-form-variables/m-p/242248#M195378</guid>
      <dc:creator>kelyannegualber</dc:creator>
      <dc:date>2016-02-01T13:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Multi instance using form variables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multi-instance-using-form-variables/m-p/242249#M195379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well, You can pass your Person object in the map and iterate it as suggested in my earlier post. Now in the sub process as it is only related to a single person, you type cast the Object to your Person object in the first service task and set the process variables using it. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;like say for example your sub process has variables like personName, PersonAge etc. In your service task, you can set them as below. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// Below is the Person object which you have passed to the sub process&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Person currPerson = (Person) execution.getVariable("Person")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//In the below step you are setting the personName process variable value from the Person object which you have received from the parent process. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;execution.setVariable("personName", currPerson.getName());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;execution.setVariable("personAge", currPerson.getAge());&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2016 10:23:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multi-instance-using-form-variables/m-p/242249#M195379</guid>
      <dc:creator>hari</dc:creator>
      <dc:date>2016-02-02T10:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: Multi instance using form variables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multi-instance-using-form-variables/m-p/242250#M195380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks so much, Hari! Now it's clear! &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2016 11:57:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multi-instance-using-form-variables/m-p/242250#M195380</guid>
      <dc:creator>kelyannegualber</dc:creator>
      <dc:date>2016-02-02T11:57:00Z</dc:date>
    </item>
  </channel>
</rss>

