<?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 Is activiti:formKey really necessary? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/is-activiti-formkey-really-necessary/m-p/138530#M97099</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;SPAN&gt;I started to use Activiti just recently and I find it easiest to use. I love it's simplicity and OSGi support that I couldn't find in competetive engines.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Since I'm new to Activiti and BPMN, I have a simple question from the topic: is activiti:formKey attribute really necessary? Can't I just use id attribute to check what form should I display?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;First of all, I use my own rendering engine and use Activiti API for all workflow management.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Let's say, that I have following process:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[startEvent] —&amp;gt; [EnterPersonDataTask] —&amp;gt; [EnterPersonAddressesTask] —&amp;gt; [EndEvent]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Each task is userTask and has it's own form.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A task could be written as:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;userTask id="EnterPersonDataTask" name="Enter person data" activiti:formKey="EnterPersonDataForm"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Right now I use task.getTaskDefinitionKey() to get id of a task and based on that id I show appropriate form to the user. In other words, you can say that I have 1-1 relation between task id's and my form's id's. So according to this I could just use such task instead of previous one:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;userTask id="EnterPersonDataTask" name="Enter person data"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and have a little bit less configuration, that could be important when using large processes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can't that suffice? What are use cases that state that I should use formKey instead of id?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance for any help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Dec 2012 12:21:39 GMT</pubDate>
    <dc:creator>mariusz_cwikla</dc:creator>
    <dc:date>2012-12-13T12:21:39Z</dc:date>
    <item>
      <title>Is activiti:formKey really necessary?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-activiti-formkey-really-necessary/m-p/138530#M97099</link>
      <description>Hello,I started to use Activiti just recently and I find it easiest to use. I love it's simplicity and OSGi support that I couldn't find in competetive engines.Since I'm new to Activiti and BPMN, I have a simple question from the topic: is activiti:formKey attribute really necessary? Can't I just us</description>
      <pubDate>Thu, 13 Dec 2012 12:21:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-activiti-formkey-really-necessary/m-p/138530#M97099</guid>
      <dc:creator>mariusz_cwikla</dc:creator>
      <dc:date>2012-12-13T12:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Is activiti:formKey really necessary?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-activiti-formkey-really-necessary/m-p/138531#M97100</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;It's up to you. We provide the formKey attribute if you want to use it, but you can also use the id attribute.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But if you would have multiple user tasks that reference the same form I think the formKey would be a better solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2012 20:36:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-activiti-formkey-really-necessary/m-p/138531#M97100</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2012-12-13T20:36:12Z</dc:date>
    </item>
  </channel>
</rss>

