<?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: What happens with process if a task is deleted in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/what-happens-with-process-if-a-task-is-deleted/m-p/27590#M11837</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Samueel_,&lt;BR /&gt;&lt;BR /&gt;Can you expand a little bit on what you mean? Your question could be interpreted in several different ways. I'm happy to help if I know what you mean.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;-JEarles&lt;BR /&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Mar 2017 15:27:43 GMT</pubDate>
    <dc:creator>jearles</dc:creator>
    <dc:date>2017-03-06T15:27:43Z</dc:date>
    <item>
      <title>What happens with process if a task is deleted</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/what-happens-with-process-if-a-task-is-deleted/m-p/27589#M11836</link>
      <description>What's happens with the process when we delete a task? The prior task is recovered from the history to runtime?</description>
      <pubDate>Mon, 06 Mar 2017 12:57:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/what-happens-with-process-if-a-task-is-deleted/m-p/27589#M11836</guid>
      <dc:creator>samueel</dc:creator>
      <dc:date>2017-03-06T12:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: What happens with process if a task is deleted</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/what-happens-with-process-if-a-task-is-deleted/m-p/27590#M11837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Samueel_,&lt;BR /&gt;&lt;BR /&gt;Can you expand a little bit on what you mean? Your question could be interpreted in several different ways. I'm happy to help if I know what you mean.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;-JEarles&lt;BR /&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2017 15:27:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/what-happens-with-process-if-a-task-is-deleted/m-p/27590#M11837</guid>
      <dc:creator>jearles</dc:creator>
      <dc:date>2017-03-06T15:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: What happens with process if a task is deleted</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/what-happens-with-process-if-a-task-is-deleted/m-p/27591#M11838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In our company we are facing the UNDO problem. It seems to be a difficult problem to solve. So, we began to think some ways to solve this problem.&lt;/P&gt;&lt;P&gt;Once the context was exposed.&lt;/P&gt;&lt;P&gt;If we delete some runtime task, the execution point that process could back in time? Restoring the prior state of the process? Can you understood?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2017 12:52:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/what-happens-with-process-if-a-task-is-deleted/m-p/27591#M11838</guid>
      <dc:creator>samueel</dc:creator>
      <dc:date>2017-03-10T12:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: What happens with process if a task is deleted</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/what-happens-with-process-if-a-task-is-deleted/m-p/27592#M11839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;B&gt;samueel _&lt;/B&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is very unclear what you are trying to solve.&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;In our company we are facing the UNDO problem. It seems to be a difficult problem to solve&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;What exactly do you mean by 'UNDO'? What is your use case here and what are you hoping Activiti can do?&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;If we delete some runtime task, the execution point that process could back in time? Restoring the prior state of the process? Can you understood?&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You can't delete a runtime task because it is part of a running process instance. You can complete a task but completing task with move the process forward. It seems that you are looking for how to move the process backward. In Activiti, once a step is completed, it's completed. If you want to implement the 'rework' scenario, you need to model it in your process definition, meaning you needs to allow the flow to flow back to previous steps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Thong&lt;/P&gt;&lt;P&gt;bp3‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2017 08:22:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/what-happens-with-process-if-a-task-is-deleted/m-p/27592#M11839</guid>
      <dc:creator>thuynh</dc:creator>
      <dc:date>2017-03-13T08:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: What happens with process if a task is deleted</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/what-happens-with-process-if-a-task-is-deleted/m-p/27593#M11840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Last month there was a unavailable system problem in our Company, then a batch process completed several tasks causing some problems to customers because&amp;nbsp; the involved persons hadn't time to correctly complete tasks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A UNDO procedure could restablish the previous condition once the bpmn model won't predict it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To workaround this situation we adopt the following:&amp;nbsp; there is a class "SetProcessDefinitionVersionCmd" in Activiti that change the process's definition version and we use it to solve our problem. The steps is.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Re-model the process to include the backward condition and deploy to generate new version to that bpmn definition process.&lt;/LI&gt;&lt;LI&gt;With the above class, change the definition version from the affected processs to new version definition.&lt;/LI&gt;&lt;LI&gt;Complete the actual task and return to previous point that we included.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some problems could be workarounded with this approach. Not for all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this a good approach to this problem? What do you think about it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2017 13:41:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/what-happens-with-process-if-a-task-is-deleted/m-p/27593#M11840</guid>
      <dc:creator>samueel</dc:creator>
      <dc:date>2017-03-13T13:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: What happens with process if a task is deleted</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/what-happens-with-process-if-a-task-is-deleted/m-p/27594#M11841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;B&gt;samueel _&lt;/B&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for explaining more your business use case. However, it is still not clear to me whether it was a BPM issue or not. I understand your workaround though. '&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;SetProcessDefinitionVersionCmd' is used to update process definition and migrate runtime instances to the updated model. It can solve your issue but it is certainly not meant for that purpose.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You said:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;Last month there was a unavailable system problem in our Company, then a batch process completed several tasks causing some problems to customers because&amp;nbsp; the involved persons hadn't time to correctly complete tasks.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;So isn't this your batch process problem? It should have not completed tasks inappropriately?&amp;nbsp;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;A UNDO procedure could restablish the previous condition once the bpmn model won't predict it.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This isn't BPM. BPM is all about understanding the process and model it in the best effective, efficient way. If your process contains unpredictable parts, then you would need to try to understand the unpredictable as much as you can and include it in the model. So far in your description, I have not yet seen a proper BPM problem statement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I make sense,&lt;/P&gt;&lt;P&gt;Thong&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2017 16:02:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/what-happens-with-process-if-a-task-is-deleted/m-p/27594#M11841</guid>
      <dc:creator>thuynh</dc:creator>
      <dc:date>2017-03-13T16:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: What happens with process if a task is deleted</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/what-happens-with-process-if-a-task-is-deleted/m-p/27595#M11842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro" style="color: #727174; background-color: #ffffff; border: 0px;"&gt;So isn't this your batch process problem? It should have not completed tasks inappropriately?&amp;nbsp;&lt;/BLOCKQUOTE&gt;&lt;P&gt;For your complete comprehension about our use case. We also understand that batch process shoudn't complete the tasks inappropriately. Our team only available some services to interact with Activiti and we don't design a bpmn model. Our module's name is "Motor" like "Engine" in english and is only a service layer to interact with Activiti. There are business teams that invoke our services and interact with activiti.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;BR /&gt;&lt;P&gt;This isn't BPM. BPM is all about understanding the process and model it in the best effective, efficient way. If your process contains unpredictable parts, then you would need to try to understand the unpredictable as much as you can and include it in the model. So far in your description, I have not yet seen a proper BPM problem statement. &lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The batch job wasn't created by our team therefore we can't identify the most correct time and points to catch some unpredictable situations in bpmn. So, once the task was completed we need some manner to move process backward.&lt;/P&gt;&lt;P&gt;This class "SetProcessDefinitionVersionCmd" was a manner that we found to re-execute that task (back to future like DeLorean &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2017 18:22:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/what-happens-with-process-if-a-task-is-deleted/m-p/27595#M11842</guid>
      <dc:creator>samueel</dc:creator>
      <dc:date>2017-03-13T18:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: What happens with process if a task is deleted</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/what-happens-with-process-if-a-task-is-deleted/m-p/27596#M11843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Samueel_,&lt;BR /&gt;&lt;BR /&gt;If it works for you, it works for you. The reality is, that BPM is never meant to be allowed to 'rollback' as a part of a solution. BPM is meant to be an almost entirely linear (including parallel splits and rejoins) solution that is intended to be self documenting in relation to the task completion and the process at hand.&lt;BR /&gt;Once you allow for anyone to 'rollback' a task or series of tasks, you're removing the integrity of tracking the solution - as at that point, there is no guarantee that the events that should have been completed as the system of record would show, will actually be completed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Glad you got something that fits your need &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&amp;nbsp;And what you're doing is probably the safest way to go about enabling a 'rollback' ability.&lt;BR /&gt;&lt;BR /&gt;-JEarles&lt;BR /&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2017 19:24:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/what-happens-with-process-if-a-task-is-deleted/m-p/27596#M11843</guid>
      <dc:creator>jearles</dc:creator>
      <dc:date>2017-03-13T19:24:10Z</dc:date>
    </item>
  </channel>
</rss>

