<?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 Lock/Unlock objects due process workflow in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/lock-unlock-objects-due-process-workflow/m-p/239529#M192659</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;I would like to know if there is any best practice reccomendation to lock/unlock objects involved in an workflow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Let's say, I choose several orders that need to be cancelled.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The cancel process involves review the chosen orders, and then a sales manager to confirm cancellation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Meanwhile, I would like to avoid anyone else to change the orders until the process is finished, manually cancelled or timed out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Some ideas come to my mind:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) I need to have a "lock table" since workflows must survive restarts of the app server. I suppose I need to record the process instance ID into this table, so I can track objects x processes and destroy process in case of forced unlock (item 2 ahead).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) I need some way to unlock objects for a long while - and forcing the unlock must manually cancel the process itself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) Is better to lock objects from inside the process itself (for instance, after the objects review task), or is better to lock them before starting the process instance?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4) The event of error must call a task to unlock all objects?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5) Is there any generic "process listener" or "process instance listener" which I can use to lock and unlock objects (even in case of catastrofic failure)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are best practices which I can learn from about this topic?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edson Richter&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Jun 2016 16:20:27 GMT</pubDate>
    <dc:creator>edsonrichter</dc:creator>
    <dc:date>2016-06-06T16:20:27Z</dc:date>
    <item>
      <title>Lock/Unlock objects due process workflow</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lock-unlock-objects-due-process-workflow/m-p/239529#M192659</link>
      <description>Hi!I would like to know if there is any best practice reccomendation to lock/unlock objects involved in an workflow.Let's say, I choose several orders that need to be cancelled.The cancel process involves review the chosen orders, and then a sales manager to confirm cancellation.Meanwhile, I would l</description>
      <pubDate>Mon, 06 Jun 2016 16:20:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lock-unlock-objects-due-process-workflow/m-p/239529#M192659</guid>
      <dc:creator>edsonrichter</dc:creator>
      <dc:date>2016-06-06T16:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: Lock/Unlock objects due process workflow</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lock-unlock-objects-due-process-workflow/m-p/239530#M192660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;1) That would work. You would indeed link it to the process instance id&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) That's up to you. You can model it both ways.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4) That can also be modeled in the process, by adding everything in an embedded subprocess with a boundary event&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5) There are geeneric listeners in Activiti, yes. But I don't think they'll be useful for your use case. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A simple approach could also be to have the locking/unlocking externally. Have a thread that checks process state, failure state, etc and changes the new table accordingly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 11:31:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lock-unlock-objects-due-process-workflow/m-p/239530#M192660</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-06-20T11:31:22Z</dc:date>
    </item>
  </channel>
</rss>

