<?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: act_hi_actinst - userTask and taskId? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/act-hi-actinst-usertask-and-taskid/m-p/151295#M106066</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;you are right - it was &lt;/SPAN&gt;&lt;STRONG&gt;5.10&lt;/STRONG&gt;&lt;SPAN&gt; we used prior: Scheme History says: &lt;/SPAN&gt;&lt;STRONG&gt;create(5.10) upgrade(5.10-&amp;gt;5.13)&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alright, then that's the reason. So i'll go with updating the missing variables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thx for the quick response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sidenode: &amp;gt;&amp;gt;Those didn't match, because the START_TIME_ was slightly different (+/- 1 second)&amp;lt;&amp;lt; shouldn't those be equal in any case?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(Assuming you are using NOW() in the queries, so it might be a issue, when the start happens around 490-510 ms of a second due to internal rounding)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Feb 2014 12:16:34 GMT</pubDate>
    <dc:creator>dognose</dc:creator>
    <dc:date>2014-02-10T12:16:34Z</dc:date>
    <item>
      <title>act_hi_actinst - userTask and taskId?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/act-hi-actinst-usertask-and-taskid/m-p/151290#M106061</link>
      <description>Hello,in our act_hi_actinst table, we have aprox 10.000 entries of the type userTask by now. However there are about 400 entries of the type "userTask", that have taskId set to null…SELECT * FROM&amp;nbsp; `act_hi_actinst` WHERE ACT_TYPE_ =&amp;nbsp; 'userTask'AND ISNULL( TASK_ID_ ) ‍‍‍‍‍‍I compared the times of thos</description>
      <pubDate>Fri, 07 Feb 2014 12:44:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/act-hi-actinst-usertask-and-taskid/m-p/151290#M106061</guid>
      <dc:creator>dognose</dc:creator>
      <dc:date>2014-02-07T12:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: act_hi_actinst - userTask and taskId?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/act-hi-actinst-usertask-and-taskid/m-p/151291#M106062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ps.: How do edit the post? Manual linebreaks are wrapped unnice, hard to read &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 12:48:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/act-hi-actinst-usertask-and-taskid/m-p/151291#M106062</guid>
      <dc:creator>dognose</dc:creator>
      <dc:date>2014-02-07T12:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: act_hi_actinst - userTask and taskId?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/act-hi-actinst-usertask-and-taskid/m-p/151292#M106063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I now performed the following update (on the test system) to update those values, for which the condition matches:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;UPDATE `act_hi_actinst` aha &lt;BR /&gt;INNER JOIN `act_hi_taskinst` aht&lt;BR /&gt; ON&lt;BR /&gt;&amp;nbsp; aha.PROC_INST_ID_ = aht.PROC_INST_ID_ AND&lt;BR /&gt;&amp;nbsp; aha.ACT_NAME_ = aht.NAME_ AND&lt;BR /&gt;&amp;nbsp; aha.START_TIME_ = aht.START_TIME_&lt;BR /&gt;SET aha.TASK_ID_ = aht.ID_ &lt;BR /&gt;WHERE &lt;BR /&gt; aha.ACT_TYPE_ = 'userTask' AND&lt;BR /&gt; ISNULL(aha.TASK_ID_) AND NOT ISNULL(aht.ID_);&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Finally, a total of 5 tasks have been left over where the Completion time was +/-1 seconds in both tables. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, I could fix those manually.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Core question remains: Would it be save to reinsert the missing TaskIDs in act_hi_actinst, or is activity (internaly) knowing, that these are processes from 5.12 and assuming the field to be 'null'?&lt;/STRONG&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 13:20:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/act-hi-actinst-usertask-and-taskid/m-p/151292#M106063</guid>
      <dc:creator>dognose</dc:creator>
      <dc:date>2014-02-07T13:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: act_hi_actinst - userTask and taskId?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/act-hi-actinst-usertask-and-taskid/m-p/151293#M106064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Loaded an old dump from 5.12 - there the column hasn't even been there in act_hi_varinst. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So its not a "bug", but simple the fact, that after the update of the db scheme, all the taskId fields for "5.12-activiti-instances" are null.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 13:44:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/act-hi-actinst-usertask-and-taskid/m-p/151293#M106064</guid>
      <dc:creator>dognose</dc:creator>
      <dc:date>2014-02-07T13:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: act_hi_actinst - userTask and taskId?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/act-hi-actinst-usertask-and-taskid/m-p/151294#M106065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;wow you did some nice investigation yourselves there!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However I'm not following completely your explanation above … this is what I found :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- The table ACT_HI_VARINST was introduced in 5.11 upgrade&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- The TASK_ID_&amp;nbsp; column of ACT_HI_ACTINST was also introduced in 5.11 upgrade&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So that doesn't seem to match what you found, right?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regarding to your question:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Core question remains: Would it be save to reinsert the missing TaskIDs in act_hi_actinst, or is activity (internaly) knowing, that these are processes from 5.12 and assuming the field to be 'null'?"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes it is safe. Once created, Activiti will not use these values anymore (except for updates, but it can handle nulls)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 08:37:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/act-hi-actinst-usertask-and-taskid/m-p/151294#M106065</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-02-10T08:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: act_hi_actinst - userTask and taskId?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/act-hi-actinst-usertask-and-taskid/m-p/151295#M106066</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;you are right - it was &lt;/SPAN&gt;&lt;STRONG&gt;5.10&lt;/STRONG&gt;&lt;SPAN&gt; we used prior: Scheme History says: &lt;/SPAN&gt;&lt;STRONG&gt;create(5.10) upgrade(5.10-&amp;gt;5.13)&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alright, then that's the reason. So i'll go with updating the missing variables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thx for the quick response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sidenode: &amp;gt;&amp;gt;Those didn't match, because the START_TIME_ was slightly different (+/- 1 second)&amp;lt;&amp;lt; shouldn't those be equal in any case?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(Assuming you are using NOW() in the queries, so it might be a issue, when the start happens around 490-510 ms of a second due to internal rounding)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 12:16:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/act-hi-actinst-usertask-and-taskid/m-p/151295#M106066</guid>
      <dc:creator>dognose</dc:creator>
      <dc:date>2014-02-10T12:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: act_hi_actinst - userTask and taskId?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/act-hi-actinst-usertask-and-taskid/m-p/151296#M106067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;On another sidenode: &amp;gt;&amp;gt;Yes it is safe. Once created, Activiti will not use these values anymore&amp;lt;&amp;lt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We encountered the problems, when using the following statement:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;HistoricActivityInstance activityInstance = this.historyService.createHistoricActivityInstanceQuery()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .activityInstanceId(processVar.getActualInstance().getActivityInstanceId()).singleResult();&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;The returned activitiInstance has task id null for the mentioned processes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Reason:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We are using processvariables on a "process" Scope (businessProcess.setVariable) and not on the task Scope (businessProcess.setTaskVariable)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This means (&lt;/SPAN&gt;&lt;EM&gt;assuming it is because of that&lt;/EM&gt;&lt;SPAN&gt;), that act_hi_detail has always taskId `null`. To know, in which Task a variable has been changed, we are using the HistoricActivitiyInstance service to determine the taskID based on the activitiid provided by the act_hi_detail table. And there, we are getting taskId `null`, when its not set inside the act_hi_actinst table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(So, maybe its not used by activiti - but its available using the services exposed in the public API.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 16:50:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/act-hi-actinst-usertask-and-taskid/m-p/151296#M106067</guid>
      <dc:creator>dognose</dc:creator>
      <dc:date>2014-02-10T16:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: act_hi_actinst - userTask and taskId?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/act-hi-actinst-usertask-and-taskid/m-p/151297#M106068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, that last use case makes sense. Indeed in that case it would be an issue if you use it like that&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Those didn't match, because the START_TIME_ was slightly different (+/- 1 second)&amp;lt;&amp;lt; shouldn't those be equal in any case?"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not following that, can you explain?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 15:36:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/act-hi-actinst-usertask-and-taskid/m-p/151297#M106068</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-02-11T15:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: act_hi_actinst - userTask and taskId?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/act-hi-actinst-usertask-and-taskid/m-p/151298#M106069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I noticed the difference in the millosecond between table ACT_RU_TASK column CREATE_TIME_ and ACT_HI_TASKINST column START_TIME_ .. say out of 176 records, i found 7 had that difference. It would have been best if the main table ACT_RU_TASK or ACT_HI_TASKINST start time is used to update the other table. They probably used sysdate or something. I'm using ORACLE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a patch or a way to ensure its always in sync ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 02:43:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/act-hi-actinst-usertask-and-taskid/m-p/151298#M106069</guid>
      <dc:creator>sakthi1970</dc:creator>
      <dc:date>2015-02-17T02:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: act_hi_actinst - userTask and taskId?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/act-hi-actinst-usertask-and-taskid/m-p/151299#M106070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's probably because time actually moved on when those two datas are made … I agree it would maybe be better to have them in sync&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; Is there a patch or a way to ensure its always in sync ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;um. you just found it… how would there be a patch already? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If it's a problem for you, you either create an issue so we can track or you fix it and create a pull request&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 16:22:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/act-hi-actinst-usertask-and-taskid/m-p/151299#M106070</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-02-18T16:22:12Z</dc:date>
    </item>
  </channel>
</rss>

