<?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 Issues implementing rollback/undo functionality in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/issues-implementing-rollback-undo-functionality/m-p/99887#M69120</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to implement rollback functionality (aka "Undo") for my Activiti process and I seem to be hitting a snag. I am using the basic idea found &lt;/SPAN&gt;&lt;A href="http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=2566&amp;amp;p=11170" rel="nofollow noopener noreferrer"&gt;here&lt;/A&gt;&lt;SPAN&gt;, but adding the concept of a timeout. What I am doing is inserting a user task between the rollback target and some end point. This user task has a timer boundary event which proceeds to the end point after a given time period. The idea is the process should wait at this user task until one of two things happens:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;LI&gt;The user rolls back to the previous user task&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;The timer fires, moving to the end point.&lt;/LI&gt;&lt;/UL&gt;&lt;SPAN&gt;[attachment=0]Rollback Process.png[/attachment]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In the diagram above, "A" is the user task I want to allow the "undo" action on, and "B" is the user task that should allow this to take place. One can see the timer boundary event on "B", which will proceed to the end once the undo period has elapsed. The timer boundary event has cancelActivity="true", and appears to be attached correctly:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;process id="RollbackProcess" name="Rollback Process"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;documentation&amp;gt;Place documentation for the 'Rollback Process' process here.&amp;lt;/documentation&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;startEvent id="startevent1" name="Start"&amp;gt;&amp;lt;/startEvent&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;userTask id="usertask1" name="A" activiti:candidateUsers="A"&amp;gt;&amp;lt;/userTask&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;userTask id="usertask2" name="B" activiti:candidateGroups="B"&amp;gt;&amp;lt;/userTask&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;boundaryEvent id="boundarytimer1" cancelActivity="true" attachedToRef="usertask2"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;timerEventDefinition&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;timeDuration&amp;gt;PT48H&amp;lt;/timeDuration&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/timerEventDefinition&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/boundaryEvent&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;endEvent id="endevent1" name="End"&amp;gt;&amp;lt;/endEvent&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="flow1" name="" sourceRef="startevent1" targetRef="usertask1"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="flow2" name="" sourceRef="usertask1" targetRef="usertask2"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="flow3" name="" sourceRef="boundarytimer1" targetRef="endevent1"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="flow4" name="" sourceRef="usertask2" targetRef="usertask1"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/process&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;The issue I am having is this: The process will reach the end point and not "stop" at user task "B". A job is created (I can see jobs in ACT_RU_JOB for the timer), but the process does not wait where I would expect it to. I have "jobExecutorActivate" set to "true", and have confirmed in the code (via processEngine.getProcessEngineConfiguration().getJobExecutor().isActive()) that it considers itself active.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts as to what I am doing wrong? Is there something about user tasks and/or timer boundary events I am missing here? I am using version 5.8 of Activiti.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Feb 2012 17:58:22 GMT</pubDate>
    <dc:creator>cmaron</dc:creator>
    <dc:date>2012-02-15T17:58:22Z</dc:date>
    <item>
      <title>Issues implementing rollback/undo functionality</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/issues-implementing-rollback-undo-functionality/m-p/99887#M69120</link>
      <description>Hello all,I am trying to implement rollback functionality (aka "Undo") for my Activiti process and I seem to be hitting a snag. I am using the basic idea found here, but adding the concept of a timeout. What I am doing is inserting a user task between the rollback target and some end point. This use</description>
      <pubDate>Wed, 15 Feb 2012 17:58:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/issues-implementing-rollback-undo-functionality/m-p/99887#M69120</guid>
      <dc:creator>cmaron</dc:creator>
      <dc:date>2012-02-15T17:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: Issues implementing rollback/undo functionality</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/issues-implementing-rollback-undo-functionality/m-p/99888#M69121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just in case anyone runs up against the same issue in the future, the "fix" for us was to re-create the activiti diagram and be careful not to delete tasks. This may seem strange, but apparently the activiti designer was not properly setting all of the elements for the bpmn diagram. This was causing certain connections to break. It's a pain, but if you are noticing strange issues with something like this, try re-creating your diagram.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 20:04:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/issues-implementing-rollback-undo-functionality/m-p/99888#M69121</guid>
      <dc:creator>cmaron</dc:creator>
      <dc:date>2012-03-07T20:04:04Z</dc:date>
    </item>
  </channel>
</rss>

