<?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: uniquely identifying user task form process instances in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/uniquely-identifying-user-task-form-process-instances/m-p/176449#M129579</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Raj,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Question 1 : Is the Business Key unique among all process instances running/completed/suspended, etc?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt; /**&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * Starts a new process instance in the latest version of the process&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * definition with the given key.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * &lt;BR /&gt;&amp;nbsp;&amp;nbsp; * A business key can be provided to associate the process instance with a&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * certain identifier that has a clear business meaning. For example in an&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * order process, the business key could be an order id. This business key can&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * then be used to easily look up that process instance , see&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * {@link ProcessInstanceQuery#processInstanceBusinessKey(String)}. Providing&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * such a business key is definitely a best practice.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * &lt;BR /&gt;&amp;nbsp;&amp;nbsp; * Note that a business key MUST be unique for the given process definition.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * Process instance from different process definition are allowed to have the&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * same business key.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * &lt;BR /&gt;&amp;nbsp;&amp;nbsp; * The combination of processdefinitionKey-businessKey must be unique.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * &lt;BR /&gt;&amp;nbsp;&amp;nbsp; * @param processDefinitionKey&lt;BR /&gt;&amp;nbsp;&amp;nbsp; *&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; key of process definition, cannot be null.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * @param businessKey&lt;BR /&gt;&amp;nbsp;&amp;nbsp; *&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a key that uniquely identifies the process instance in the context&lt;BR /&gt;&amp;nbsp;&amp;nbsp; *&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; or the given process definition.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * @throws ActivitiObjectNotFoundException&lt;BR /&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; when no process definition is deployed with the given key.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; */&lt;BR /&gt;&amp;nbsp; ProcessInstance startProcessInstanceByKey(String processDefinitionKey, String businessKey);&lt;BR /&gt;&lt;/CODE&gt;&lt;SPAN&gt;but this behavior has changed in 5.15&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.activiti.org/content/activiti-didnt-check-uniqueness-businesskey" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/content/activiti-didnt-check-uniqueness-businesskey&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Question 2 : I am making a following query :&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp; /**&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * Executes the query and returns the resulting entity or null if no&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * entity matches the query criteria.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * @throws ActivitiException when the query results in more than one&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * entities.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; */&lt;BR /&gt;&amp;nbsp; U singleResult();&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Question 3 : Among all running process instances a given user tasks’s ID returned by tasks.getId() would always be the same, is this the current understanding? Does this mean, this is actually a task design db id?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;task.getId() - returns unique id of the task. (Unique means only one in the process engine.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp; /** DB id of the task. */&lt;BR /&gt; String getId();&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>Thu, 29 May 2014 06:49:25 GMT</pubDate>
    <dc:creator>martin_grofcik</dc:creator>
    <dc:date>2014-05-29T06:49:25Z</dc:date>
    <item>
      <title>uniquely identifying user task form process instances</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/uniquely-identifying-user-task-form-process-instances/m-p/176448#M129578</link>
      <description>Hello fellow activitiers,I have following questions, appreciate your help on these..Question 1 : Is the Business Key unique among all process instances running/completed/suspended, etc?Question 2 : I am making a following query :Execution execution = processEngine.getRuntimeService().createExecution</description>
      <pubDate>Thu, 29 May 2014 02:43:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/uniquely-identifying-user-task-form-process-instances/m-p/176448#M129578</guid>
      <dc:creator>rhiremat</dc:creator>
      <dc:date>2014-05-29T02:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: uniquely identifying user task form process instances</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/uniquely-identifying-user-task-form-process-instances/m-p/176449#M129579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Raj,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Question 1 : Is the Business Key unique among all process instances running/completed/suspended, etc?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt; /**&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * Starts a new process instance in the latest version of the process&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * definition with the given key.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * &lt;BR /&gt;&amp;nbsp;&amp;nbsp; * A business key can be provided to associate the process instance with a&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * certain identifier that has a clear business meaning. For example in an&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * order process, the business key could be an order id. This business key can&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * then be used to easily look up that process instance , see&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * {@link ProcessInstanceQuery#processInstanceBusinessKey(String)}. Providing&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * such a business key is definitely a best practice.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * &lt;BR /&gt;&amp;nbsp;&amp;nbsp; * Note that a business key MUST be unique for the given process definition.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * Process instance from different process definition are allowed to have the&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * same business key.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * &lt;BR /&gt;&amp;nbsp;&amp;nbsp; * The combination of processdefinitionKey-businessKey must be unique.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * &lt;BR /&gt;&amp;nbsp;&amp;nbsp; * @param processDefinitionKey&lt;BR /&gt;&amp;nbsp;&amp;nbsp; *&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; key of process definition, cannot be null.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * @param businessKey&lt;BR /&gt;&amp;nbsp;&amp;nbsp; *&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a key that uniquely identifies the process instance in the context&lt;BR /&gt;&amp;nbsp;&amp;nbsp; *&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; or the given process definition.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * @throws ActivitiObjectNotFoundException&lt;BR /&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; when no process definition is deployed with the given key.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; */&lt;BR /&gt;&amp;nbsp; ProcessInstance startProcessInstanceByKey(String processDefinitionKey, String businessKey);&lt;BR /&gt;&lt;/CODE&gt;&lt;SPAN&gt;but this behavior has changed in 5.15&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.activiti.org/content/activiti-didnt-check-uniqueness-businesskey" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/content/activiti-didnt-check-uniqueness-businesskey&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Question 2 : I am making a following query :&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp; /**&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * Executes the query and returns the resulting entity or null if no&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * entity matches the query criteria.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * @throws ActivitiException when the query results in more than one&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * entities.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; */&lt;BR /&gt;&amp;nbsp; U singleResult();&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Question 3 : Among all running process instances a given user tasks’s ID returned by tasks.getId() would always be the same, is this the current understanding? Does this mean, this is actually a task design db id?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;task.getId() - returns unique id of the task. (Unique means only one in the process engine.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp; /** DB id of the task. */&lt;BR /&gt; String getId();&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>Thu, 29 May 2014 06:49:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/uniquely-identifying-user-task-form-process-instances/m-p/176449#M129579</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2014-05-29T06:49:25Z</dc:date>
    </item>
  </channel>
</rss>

