<?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-running a workflow for a business key in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/re-running-a-workflow-for-a-business-key/m-p/32764#M17044</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;The idea of the business-key is to have your own unique identifier for a process-instance (be it historic or not), independant of the ID's in activiti. So when a process has been started with that ID ever (and history isn't turned off), it cannot be started again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you really want to reuse a certain business-key (eg. due to cancelation of process), you should first delete the historic process instance (HistoryService.deleteHistoricProcessInstance()), this will remove all history data.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Mar 2011 07:13:29 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2011-03-22T07:13:29Z</dc:date>
    <item>
      <title>Re-running a workflow for a business key</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/re-running-a-workflow-for-a-business-key/m-p/32763#M17043</link>
      <description>If I have a workflow with key "Workflow A" and a business entity named "My Customer", start a process instance for them and then cancel it, trying to restart it throws an error because of ACT_UNIQ_HI_BUS_KEY. The same thing happens if I run through the workflow for them and then try to run it again.</description>
      <pubDate>Mon, 21 Mar 2011 19:24:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/re-running-a-workflow-for-a-business-key/m-p/32763#M17043</guid>
      <dc:creator>jenguran</dc:creator>
      <dc:date>2011-03-21T19:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: Re-running a workflow for a business key</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/re-running-a-workflow-for-a-business-key/m-p/32764#M17044</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;The idea of the business-key is to have your own unique identifier for a process-instance (be it historic or not), independant of the ID's in activiti. So when a process has been started with that ID ever (and history isn't turned off), it cannot be started again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you really want to reuse a certain business-key (eg. due to cancelation of process), you should first delete the historic process instance (HistoryService.deleteHistoricProcessInstance()), this will remove all history data.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2011 07:13:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/re-running-a-workflow-for-a-business-key/m-p/32764#M17044</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-03-22T07:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Re-running a workflow for a business key</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/re-running-a-workflow-for-a-business-key/m-p/32765#M17045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;The idea of the business-key is to have your own unique identifier for a process-instance (be it historic or not), independant of the ID's in activiti. So when a process has been started with that ID ever (and history isn't turned off), it cannot be started again.&lt;BR /&gt;&lt;BR /&gt;If you really want to reuse a certain business-key (eg. due to cancelation of process), you should first delete the historic process instance (HistoryService.deleteHistoricProcessInstance()), this will remove all history data.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe there should be some relaxation in this. Think e.g. About te case where you have a car damage repair process. Using the licenseplate number or the chassis number is logical then, but a car can have damage multiple times. Deleting history would make bam things hard.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2011 07:44:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/re-running-a-workflow-for-a-business-key/m-p/32765#M17045</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-03-22T07:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: Re-running a workflow for a business key</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/re-running-a-workflow-for-a-business-key/m-p/32766#M17046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Than it's best to just use a process-variable for this I guess (querying for those is possible too, so can be used exactly the same as business-key). I thought this was more of identifying a process with a single (and unique) identifier within your own app. So the license-plate fits better in variables I suppose&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2011 09:58:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/re-running-a-workflow-for-a-business-key/m-p/32766#M17046</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-03-22T09:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Re-running a workflow for a business key</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/re-running-a-workflow-for-a-business-key/m-p/32767#M17047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, my example is not correct (it was early) . It seems to have been the intention of the businesskey to reference a unique instance in the domain model. So it should be a dossier number which is to be unique. Just like I aaaaaaaaalways advocated that past years &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Querying by variable is something I never did. Since if you share the engine in different apps and have requirements to find instances based on different types of variables, the number of indexes explodes and performance crumbles if you have no other option to limit the search first (e.g. processname). So we 'always' did that in the domain model.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2011 11:39:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/re-running-a-workflow-for-a-business-key/m-p/32767#M17047</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-03-22T11:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Re-running a workflow for a business key</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/re-running-a-workflow-for-a-business-key/m-p/32768#M17048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Cool, thanks for the answers. I'll switch to using a process-variable instead.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2011 14:55:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/re-running-a-workflow-for-a-business-key/m-p/32768#M17048</guid>
      <dc:creator>jenguran</dc:creator>
      <dc:date>2011-03-22T14:55:31Z</dc:date>
    </item>
  </channel>
</rss>

