<?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: Two forms following each other in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/two-forms-following-each-other/m-p/218349#M171479</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;SPAN&gt;Thanks. This was very helpful. OK, so I need some Ajax. I´m using Activity in OpenIDM from Forgerock. My workflow is designed with Activiti Designer in Eclipse. So I´m not using Activiti Explorer, I´m afraid. My forms are done with activity:formKey. So I have a separate .xhtml file for each form. In my .xhtml file I have this code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;div class="form-group"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;label class="col-sm-3 control-label" for="workerId"&amp;gt;Worker ID&amp;lt;/label&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div class="col-sm-8"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;input class="form-control" type="text" name="workerId" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;to get hold of the worker ID from the user input and put it into the process variable workerId. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I understand correctly, I now need to use workerId to lookup data in the database (for example first name, last name, ..) on the server side and send it to the client side. All happening in the same Task. This is where I´m lost and need some help. Do you have some hints or some example code that can point me in the right direction?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank for any help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Morten &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 May 2016 18:40:20 GMT</pubDate>
    <dc:creator>mlomo</dc:creator>
    <dc:date>2016-05-03T18:40:20Z</dc:date>
    <item>
      <title>Two forms following each other</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/two-forms-following-each-other/m-p/218346#M171476</link>
      <description>HiIs it possible to have two forms following each other? So the user is presented form A, fills in the form, presses Next and then is presented another form B which contains more data based on the data typed in in form A. For example, in the first form the user enters user-ID. The user-ID is used to</description>
      <pubDate>Fri, 29 Apr 2016 21:14:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/two-forms-following-each-other/m-p/218346#M171476</guid>
      <dc:creator>mlomo</dc:creator>
      <dc:date>2016-04-29T21:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Two forms following each other</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/two-forms-following-each-other/m-p/218347#M171477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Another implementation that I´ve been thinking about, is to make the whole user table into a process variable so that it will be available on the client side in form A. In this way I can use JavaScript on the client side to search the table to find first name and last name based on the user-ID that the user types in. This way I don´t need a second form. However, with more than 1000 users in the user table, I will be sending a lot of data to the client side. Is this a good design?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Morten&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2016 17:30:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/two-forms-following-each-other/m-p/218347#M171477</guid>
      <dc:creator>mlomo</dc:creator>
      <dc:date>2016-05-02T17:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Two forms following each other</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/two-forms-following-each-other/m-p/218348#M171478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;"Or even better, if I could have everything done in one form. But then I guess I need som magic (Ajax??)"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;yes indeed. Assuming you're talking about Activiti Explorer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Is this a good design?"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No, it's not a good idea to store large variables. This will be bad for query performance. Store an identifier as variable, and store the actual data somewhere external and reference it when needed.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 12:49:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/two-forms-following-each-other/m-p/218348#M171478</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-05-03T12:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Two forms following each other</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/two-forms-following-each-other/m-p/218349#M171479</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;SPAN&gt;Thanks. This was very helpful. OK, so I need some Ajax. I´m using Activity in OpenIDM from Forgerock. My workflow is designed with Activiti Designer in Eclipse. So I´m not using Activiti Explorer, I´m afraid. My forms are done with activity:formKey. So I have a separate .xhtml file for each form. In my .xhtml file I have this code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;div class="form-group"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;label class="col-sm-3 control-label" for="workerId"&amp;gt;Worker ID&amp;lt;/label&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div class="col-sm-8"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;input class="form-control" type="text" name="workerId" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;to get hold of the worker ID from the user input and put it into the process variable workerId. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I understand correctly, I now need to use workerId to lookup data in the database (for example first name, last name, ..) on the server side and send it to the client side. All happening in the same Task. This is where I´m lost and need some help. Do you have some hints or some example code that can point me in the right direction?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank for any help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Morten &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 18:40:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/two-forms-following-each-other/m-p/218349#M171479</guid>
      <dc:creator>mlomo</dc:creator>
      <dc:date>2016-05-03T18:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Two forms following each other</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/two-forms-following-each-other/m-p/218350#M171480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not familiar with how Activiti is integrated within openIDM nor how the forms work there… so I'm not sure what you need to do to make it work. In a typical Activiti setup, doing the call for fetching the worker would be done via custom ui code and a custom rest endpoint.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2016 09:32:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/two-forms-following-each-other/m-p/218350#M171480</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-05-10T09:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Two forms following each other</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/two-forms-following-each-other/m-p/218351#M171481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks. That was helpful. I've done some checking. Forgerock has a Rest API. This shows how I can access the endpoint with a curl command:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mortens-iMac&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;penidm Morten$ curl –header "X-OpenIDM-Username: openidm-admin" –header "X-OpenIDM-Password: openidm-admin" –request GET "&lt;/SPAN&gt;&lt;A _fields="rights'" amp="amp" fhs="FHS" href="http://localhost:8080/openidm/managed/tnsystem?_queryFilter=systemName+eq+" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/openidm/managed/tnsystem?_queryFilter=systemName+eq+'FHS'&amp;amp;_fields=rights&lt;/A&gt;&lt;SPAN&gt;" | jq .&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; % Total&amp;nbsp;&amp;nbsp;&amp;nbsp; % Received % Xferd&amp;nbsp; Average Speed&amp;nbsp;&amp;nbsp; Time&amp;nbsp;&amp;nbsp;&amp;nbsp; Time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Time&amp;nbsp; Current&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dload&amp;nbsp; Upload&amp;nbsp;&amp;nbsp; Total&amp;nbsp;&amp;nbsp; Spent&amp;nbsp;&amp;nbsp;&amp;nbsp; Left&amp;nbsp; Speed&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;100&amp;nbsp;&amp;nbsp; 221&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 221&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 5152&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 –:–:– –:–:– –:–:–&amp;nbsp; 5261&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "result": [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "_id": "c2b89139-0ba0-4803-92a9-30416fbd9d37",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "_rev": "1",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "rights": "admin;readOnly"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "resultCount": 1,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "pagedResultsCookie": null,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "totalPagedResultsPolicy": "NONE",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "totalPagedResults": -1,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "remainingPagedResults": -1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But how do I access this endpoint from the form code (.xhtml) file?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Morten&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2016 07:27:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/two-forms-following-each-other/m-p/218351#M171481</guid>
      <dc:creator>mlomo</dc:creator>
      <dc:date>2016-05-20T07:27:27Z</dc:date>
    </item>
  </channel>
</rss>

