<?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: re-opening closed process and setting to praticular task in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/re-opening-closed-process-and-setting-to-praticular-task/m-p/228838#M181968</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;bp3‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for super late reply here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just want to check in with you whether this is still an issue for you that needs our help to resolve?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is, please elaborate what you're trying to do a bit more clear please? You said you want to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;re-opening a process and setting it to the last task&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;by directly modifying the database&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's stop here. First of all, directly manipulating the database of the activiti-engine is totally a wrong approach. This is not supported by product and is very likely to break the entire engine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead, please let us know your use case and what you are trying to achieve. What do you mean by 'setting it to the last task'?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Dec 2016 08:01:32 GMT</pubDate>
    <dc:creator>thuynh</dc:creator>
    <dc:date>2016-12-13T08:01:32Z</dc:date>
    <item>
      <title>re-opening closed process and setting to praticular task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/re-opening-closed-process-and-setting-to-praticular-task/m-p/228835#M181965</link>
      <description>Hi there,I'm working on re-opening a process and setting it to the last task in the workflow by directly modifying the database. Right now I'm changing information in 8 tables - adding an execution, adding an act_ru_task, adding a new act_hi_actinst, adding a new act_hi_taskinst, modifying the act_h</description>
      <pubDate>Thu, 01 Sep 2016 18:38:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/re-opening-closed-process-and-setting-to-praticular-task/m-p/228835#M181965</guid>
      <dc:creator>danielporter1</dc:creator>
      <dc:date>2016-09-01T18:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: re-opening closed process and setting to praticular task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/re-opening-closed-process-and-setting-to-praticular-task/m-p/228836#M181966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Oops, posted the the wrong stored proc code. This is the invocation I was actually using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;create or replace function setClosedProcessToManagerReview(proc_inst_id character varying (64), proc_def_id character varying(64))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;returns BOOLEAN&amp;nbsp; LANGUAGE plpgsql AS&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;$$&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;BEGIN&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;INSERT INTO act_ru_execution select id_, 1, proc_inst_id_, business_key_, null, proc_def_id_, null, 'a5managerreview', true, false, true, false, 1, 2, '', null, null &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FROM act_hi_procinst &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;WHERE proc_inst_id_ = proc_inst_id;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;INSERT INTO act_ru_task&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SELECT (SELECT cast(max(cast(id_ as int)) + 3 as character varying (64)) FROM act_ru_task) as id_, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;proc_inst_id, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;proc_inst_id, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;proc_def_id, 'Manager Review', null , null, 'a5managerreview', null, null, null, 50, now(), null, null, 1, '', '/app/viewdocument/review/';&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;INSERT INTO act_hi_actinst&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SELECT (select cast(max(cast(id_ as int)) + 3 as character varying (64)) from act_hi_actinst), proc_def_id, proc_inst_id, proc_inst_id, 'a5managerreview', &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(SELECT id_ FROM act_ru_task WHERE proc_inst_id_ = proc_inst_id), null, 'Manager Review', 'userTask', null, now(), null, null, '';&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;INSERT INTO act_hi_taskinst&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;select id_, proc_def_id_, task_def_key_, proc_inst_id_, execution_id_, name_, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;null, null, null, assignee_, create_time_, null, null, null, null, 50, null, form_key_, category_, tenant_id_ FROM act_ru_task WHERE proc_inst_id_ = proc_inst_id;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;UPDATE act_hi_procinst&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SET end_time_ = null, duration_=null, end_act_id_ = null&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;WHERE proc_inst_id_ =&amp;nbsp; proc_inst_id;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;INSERT INTO act_ru_variable&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SELECT id_, rev_, var_type_, name_, execution_id_, proc_inst_id_, task_id_, bytearray_id_, double_, long_, text_, text2_ &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FROM act_hi_varinst &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;WHERE proc_inst_id_ = proc_inst_id;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;INSERT INTO act_ru_identitylink&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SELECT (SELECT cast(max(cast(id_ as int)) + 3 as character varying (64)) FROM act_ru_identitylink),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1, 'ProjectLeader', 'candidate', null, (SELECT id_ FROM act_ru_task WHERE proc_inst_id_ = proc_inst_id), null, null;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;return true;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;END;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;$$;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;select setClosedProcessToManagerReview(proc_inst_id_, 'documentupload:23:1722512') from act_hi_procinst &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;WHERE end_time_ is not null AND end_act_id_ = 'a6goodocrfinish' AND delete_reason_ is null;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 18:54:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/re-opening-closed-process-and-setting-to-praticular-task/m-p/228836#M181966</guid>
      <dc:creator>danielporter1</dc:creator>
      <dc:date>2016-09-01T18:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: re-opening closed process and setting to praticular task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/re-opening-closed-process-and-setting-to-praticular-task/m-p/228837#M181967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Daniel,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From my point of view the the described approach to get the last task of the process alive again is wrong. What is done - is done. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;OL style="list-style-type:decimal;"&gt;&lt;LI&gt;you can encapsulate the last task to the subprocess. When the process is completed and you want to create new last task process, just create new process from these subprocess.&lt;/LI&gt;&lt;LI&gt;add message event with loop back + timer intermediate events to the end of the process. Process instance will wait some time and when message (to make last task alive again) comes the loop brings execution to the task again&lt;/LI&gt;&lt;/OL&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>Fri, 02 Sep 2016 07:45:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/re-opening-closed-process-and-setting-to-praticular-task/m-p/228837#M181967</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-09-02T07:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: re-opening closed process and setting to praticular task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/re-opening-closed-process-and-setting-to-praticular-task/m-p/228838#M181968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;bp3‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for super late reply here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just want to check in with you whether this is still an issue for you that needs our help to resolve?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is, please elaborate what you're trying to do a bit more clear please? You said you want to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;re-opening a process and setting it to the last task&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;by directly modifying the database&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's stop here. First of all, directly manipulating the database of the activiti-engine is totally a wrong approach. This is not supported by product and is very likely to break the entire engine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead, please let us know your use case and what you are trying to achieve. What do you mean by 'setting it to the last task'?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 08:01:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/re-opening-closed-process-and-setting-to-praticular-task/m-p/228838#M181968</guid>
      <dc:creator>thuynh</dc:creator>
      <dc:date>2016-12-13T08:01:32Z</dc:date>
    </item>
  </channel>
</rss>

