<?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: wrong FK ACT_RU_TASK.PROC_INST_ID to ACT_RU_EXECUTION in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/wrong-fk-act-ru-task-proc-inst-id-to-act-ru-execution/m-p/244558#M197688</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The Oracle create script has this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;create index ACT_IDX_TASK_EXEC on ACT_RU_TASK(EXECUTION_ID_);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;alter table ACT_RU_TASK&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; add constraint ACT_FK_TASK_EXE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; foreign key (EXECUTION_ID_)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; references ACT_RU_EXECUTION (ID_);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;create index ACT_IDX_TASK_PROCINST on ACT_RU_TASK(PROC_INST_ID_);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;alter table ACT_RU_TASK&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; add constraint ACT_FK_TASK_PROCINST&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; foreign key (PROC_INST_ID_)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; references ACT_RU_EXECUTION (ID_);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That looks allright to me. The task has an FK to the corresponding execution and to the corresponding process instance. I don't see it pointing to ACT_RU_EXECUTION.PROC_INST_ID_ though, but to ID_.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any idea how you'd got to your schema as it is?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jun 2016 10:11:38 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2016-06-27T10:11:38Z</dc:date>
    <item>
      <title>wrong FK ACT_RU_TASK.PROC_INST_ID to ACT_RU_EXECUTION</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/wrong-fk-act-ru-task-proc-inst-id-to-act-ru-execution/m-p/244557#M197687</link>
      <description>Hi,in Activiti 6 I have found an Oracle Foreign Key from ACT_RU_TASK column PROC_INST_ID_ to ACT_RU_EXECUTION.PROC_INST_ID_This is a little bit incorrect because the PROC_INST_ID_ of the Excecution side can appear multiple times. This blows my hibernate up when I use my own queries.Shouldn't the For</description>
      <pubDate>Fri, 17 Jun 2016 14:07:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/wrong-fk-act-ru-task-proc-inst-id-to-act-ru-execution/m-p/244557#M197687</guid>
      <dc:creator>tzaenker</dc:creator>
      <dc:date>2016-06-17T14:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: wrong FK ACT_RU_TASK.PROC_INST_ID to ACT_RU_EXECUTION</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/wrong-fk-act-ru-task-proc-inst-id-to-act-ru-execution/m-p/244558#M197688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The Oracle create script has this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;create index ACT_IDX_TASK_EXEC on ACT_RU_TASK(EXECUTION_ID_);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;alter table ACT_RU_TASK&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; add constraint ACT_FK_TASK_EXE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; foreign key (EXECUTION_ID_)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; references ACT_RU_EXECUTION (ID_);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;create index ACT_IDX_TASK_PROCINST on ACT_RU_TASK(PROC_INST_ID_);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;alter table ACT_RU_TASK&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; add constraint ACT_FK_TASK_PROCINST&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; foreign key (PROC_INST_ID_)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; references ACT_RU_EXECUTION (ID_);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That looks allright to me. The task has an FK to the corresponding execution and to the corresponding process instance. I don't see it pointing to ACT_RU_EXECUTION.PROC_INST_ID_ though, but to ID_.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any idea how you'd got to your schema as it is?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2016 10:11:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/wrong-fk-act-ru-task-proc-inst-id-to-act-ru-execution/m-p/244558#M197688</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-06-27T10:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: wrong FK ACT_RU_TASK.PROC_INST_ID to ACT_RU_EXECUTION</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/wrong-fk-act-ru-task-proc-inst-id-to-act-ru-execution/m-p/244559#M197689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is the point I mean.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;a Foreign key defines a many to one relationship.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Means when I look up beginning from the ACT_RU_TASK and I look for the Execution by Excecution_ID_ I get 1 element back. Which is good!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I look for Process instance I retrieve all Executions and the process instance itself. Which is wrong and confusing. Why PROC_INST_ID_ is not pointing to ACT_RU_EXECUTION.ID_ referencing the one Process instance instead of all child executions of this process?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To give you one example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ID_&amp;nbsp; REV_ PROC_INST_ID_ BUSINESS_KEY_ PARENT_ID_ PROC_DEF_ID_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2505&amp;nbsp; 1 2505&amp;nbsp;&amp;nbsp; iteratorExample:1:2504&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2509&amp;nbsp; 1 2505&amp;nbsp; 2505 iteratorExample:1:2504&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2512&amp;nbsp; 1 2505&amp;nbsp; 2509 iteratorExample:1:2504&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2533&amp;nbsp; 1 2505&amp;nbsp; 2512 iteratorExample:1:2504&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I am looking from a task for the proc_inst_id_ (following the Foreign Key) I retrieve four "Process instances" instead of only one. In this example above I would expect to retrieve only the ID_ 2505 entry instead of the set of 2505 - 2533.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The definition in the database is wrong at this point.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2016 12:58:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/wrong-fk-act-ru-task-proc-inst-id-to-act-ru-execution/m-p/244559#M197689</guid>
      <dc:creator>tzaenker</dc:creator>
      <dc:date>2016-06-27T12:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: wrong FK ACT_RU_TASK.PROC_INST_ID to ACT_RU_EXECUTION</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/wrong-fk-act-ru-task-proc-inst-id-to-act-ru-execution/m-p/244560#M197690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I read again your post from before. And sorry your SQL is correct. I don't know why is it wrong in my Database. I will check my create scripts.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2016 13:16:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/wrong-fk-act-ru-task-proc-inst-id-to-act-ru-execution/m-p/244560#M197690</guid>
      <dc:creator>tzaenker</dc:creator>
      <dc:date>2016-06-27T13:16:15Z</dc:date>
    </item>
  </channel>
</rss>

