<?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: Is it possible to use dynamic formkey for user tasks? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-use-dynamic-formkey-for-user-tasks/m-p/209318#M162448</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, formKey is an expression, so you can use variables in that expression that resolve to the actual form key.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Sep 2015 10:14:08 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2015-09-08T10:14:08Z</dc:date>
    <item>
      <title>Is it possible to use dynamic formkey for user tasks?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-use-dynamic-formkey-for-user-tasks/m-p/209317#M162447</link>
      <description>Hi,Am creating a workflow to deploy in alfresco. In this one&amp;nbsp; user task formkey is depends on one field selected by the initiator. Is it possible to dynamically assign the formkey for a usertask?</description>
      <pubDate>Tue, 01 Sep 2015 09:13:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-use-dynamic-formkey-for-user-tasks/m-p/209317#M162447</guid>
      <dc:creator>prasobhraj</dc:creator>
      <dc:date>2015-09-01T09:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use dynamic formkey for user tasks?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-use-dynamic-formkey-for-user-tasks/m-p/209318#M162448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, formKey is an expression, so you can use variables in that expression that resolve to the actual form key.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 10:14:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-use-dynamic-formkey-for-user-tasks/m-p/209318#M162448</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-09-08T10:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use dynamic formkey for user tasks?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-use-dynamic-formkey-for-user-tasks/m-p/209319#M162449</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;I tried to do with this using a variable like below&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;userTask id="usertask1" name="User Task" activiti:candidateGroups="${agrmnt_management_execgp}" activiti:formKey="${agrmnt_management_exec_form}"&amp;gt;&amp;lt;/userTask&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and the form key is assigned by a service task as below &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;execution.setVariable("agrmnt_director_form","agrmnt&lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://connect.hyland.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;irector"+(String) execution.getVariables().get("agrmnt_agreement_type"));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but its not working. the group id for the task got worked .&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;please help to sort this out&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Sep 2015 13:10:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-use-dynamic-formkey-for-user-tasks/m-p/209319#M162449</guid>
      <dc:creator>prasobhraj</dc:creator>
      <dc:date>2015-09-12T13:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use dynamic formkey for user tasks?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-use-dynamic-formkey-for-user-tasks/m-p/209320#M162450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not following here: should the variable that is set be named 'agrmnt_management_exec_form' instead of 'agrmnt_director_form' ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 10:03:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-use-dynamic-formkey-for-user-tasks/m-p/209320#M162450</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-09-15T10:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use dynamic formkey for user tasks?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-use-dynamic-formkey-for-user-tasks/m-p/209321#M162451</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;Both agrmnt_management_exec_form and director form were there . Unfortunately i written the script mistakenly . i used the script as below&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;execution.setVariable("agrmnt_management_exec_form","agrmnt:ManagementExecutive"+(String) execution.getVariables().get("agrmnt_agreement_type"));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But its showing an error as &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR [org.springframework.extensions.webscripts.AbstractRuntime] Exception from executeScript - redirecting to status template error: 0815430674 Wrapped Exception (with status template): Namespace prefix ${agrmnt is not mapped to a namespace URI&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.springframework.extensions.webscripts.WebScriptException: 0815430674 Wrapped Exception (with status template): Namespace prefix ${agrmnt is not mapped to a namespace URI&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 13:26:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-use-dynamic-formkey-for-user-tasks/m-p/209321#M162451</guid>
      <dc:creator>prasobhraj</dc:creator>
      <dc:date>2015-09-15T13:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use dynamic formkey for user tasks?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-use-dynamic-formkey-for-user-tasks/m-p/209322#M162452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anybody has a working solution. ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2017 07:18:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-use-dynamic-formkey-for-user-tasks/m-p/209322#M162452</guid>
      <dc:creator>prasobhraj</dc:creator>
      <dc:date>2017-02-28T07:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use dynamic formkey for user tasks?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-use-dynamic-formkey-for-user-tasks/m-p/209323#M162453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems to be working fine for me on Activiti 6 Beta.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a simple process:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://connect.hyland.com/legacyfs/online/alfresco/12856_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I define a variable in the init script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;execution.setVariable("theForm", "formKey1");&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;I reference the variable for the form key in Task 1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://connect.hyland.com/legacyfs/online/alfresco/12857_pastedImage_4.png" style="width: 620px; height: 123px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I run the process to Task 1 and retrieve the details using REST:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://connect.hyland.com/legacyfs/online/alfresco/12858_pastedImage_5.png" style="width: 620px; height: 389px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As we can see, form key is correctly populated.&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2017 19:53:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-use-dynamic-formkey-for-user-tasks/m-p/209323#M162453</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-02-28T19:53:59Z</dc:date>
    </item>
  </channel>
</rss>

