<?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: Multiple End or Start events in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/multiple-end-or-start-events/m-p/18358#M8357</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Oh cool, I'll definitely try out the HistoricProcessInstance class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry if I was a bit unclear about the code dump … yes the end events are in this dump from the foo.activiti file. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I've found that when I save it in my Activiti Designer and it is transformed (on save) into the foo.activiti.bpmn20.xml&amp;nbsp; or&amp;nbsp; exported (the Export to BPMN 2.0 XML right-click option) into the&amp;nbsp;&amp;nbsp; foo.bpmn20.xml&amp;nbsp;&amp;nbsp; , all but first end event nodes are missing. Trying to run unit tests on the foo.activiti.bpmn20.xml version of this process just generates an error right off the bat …&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;org.activiti.engine.ActivitiException: cvc-id.1: There is no ID/IDREF binding for IDREF 'endevent2'. | multiEndTests/multiends.activiti.bpmn20.xml | line 1 | column 1268&lt;BR /&gt;Invalid destination 'endevent2' of sequence flow 'flow36' | multiEndTests/multiends.activiti.bpmn20.xml | line 1 | column 1086&lt;BR /&gt;&lt;BR /&gt; at org.activiti.engine.impl.util.xml.Parse.throwActivitiExceptionForErrors(Parse.java:186)&lt;BR /&gt; at org.activiti.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:225)&lt;BR /&gt; at org.activiti.engine.impl.bpmn.deployer.BpmnDeployer.deploy(BpmnDeployer.java:63)&lt;BR /&gt; at org.activiti.engine.impl.db.DbRepositorySession.deployNew(DbRepositorySession.java:63)&lt;BR /&gt; at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:52)&lt;BR /&gt; at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:30)&lt;BR /&gt; at org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:22)&lt;BR /&gt; at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:37)&lt;BR /&gt; at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)&lt;BR /&gt; at org.activiti.engine.impl.RepositoryServiceImpl.deploy(RepositoryServiceImpl.java:43)&lt;BR /&gt; at org.activiti.engine.impl.repository.DeploymentBuilderImpl.deploy(DeploymentBuilderImpl.java:103)&lt;BR /&gt; at org.activiti.engine.impl.test.TestHelper.annotationDeploymentSetUp(TestHelper.java:93)&lt;BR /&gt; at org.activiti.engine.impl.test.AbstractActivitiTestCase.runBare(AbstractActivitiTestCase.java:83)&lt;BR /&gt; at junit.framework.TestResult$1.protect(TestResult.java:110)&lt;BR /&gt; at junit.framework.TestResult.runProtected(TestResult.java:128)&lt;BR /&gt; at junit.framework.TestResult.run(TestResult.java:113)&lt;BR /&gt; at junit.framework.TestCase.run(TestCase.java:124)&lt;BR /&gt; at junit.framework.TestSuite.runTest(TestSuite.java:232)&lt;BR /&gt; at junit.framework.TestSuite.run(TestSuite.java:227)&lt;BR /&gt; at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)&lt;BR /&gt; at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)&lt;BR /&gt; at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)&lt;BR /&gt; at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)&lt;BR /&gt; at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)&lt;BR /&gt; at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)&lt;BR /&gt; at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;so strangely it looks like the sequence flows are there, but not the end events.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just wanted to know if others are getting this issue, since I am not sure if it was just my installation of the Activiti Designer that is an issue or if it's a bug with Designer itself.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Dec 2010 15:08:47 GMT</pubDate>
    <dc:creator>yangyang_qian</dc:creator>
    <dc:date>2010-12-24T15:08:47Z</dc:date>
    <item>
      <title>Multiple End or Start events</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multiple-end-or-start-events/m-p/18356#M8355</link>
      <description>Can the Activiti engine handle multiple end events? Say I have a process like the following …Start –&amp;gt; task1&amp;nbsp; –&amp;gt; XOR&amp;nbsp; –&amp;gt; End1…………………….|__&amp;gt; End2where End1 vs End2 has some sort of business meaning (i.e. rejected vs approved)If I were to execute this process, would the engine differentiate</description>
      <pubDate>Fri, 24 Dec 2010 00:22:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multiple-end-or-start-events/m-p/18356#M8355</guid>
      <dc:creator>yangyang_qian</dc:creator>
      <dc:date>2010-12-24T00:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple End or Start events</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multiple-end-or-start-events/m-p/18357#M8356</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;Activiti can indeed handle multiple end events. If you want to know what end-event has been chosen by your process-instance, you should have a look at the HistoricProcessInstance (&lt;/SPAN&gt;&lt;A href="http://activiti.org/userguide/index.html#history" rel="nofollow noopener noreferrer"&gt;http://activiti.org/userguide/index.html#history&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;HistoricProcessInstance hip = historyService.createHistoricProcessInstanceQuery().processInstanceId("123").singleResult();&lt;BR /&gt;String endActivitiId = hip.getEndActivityId();&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;About the designer-file, looks like the 2 end events are in there:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt; &amp;lt;bpmn2:EndEvent id="endevent1" name="End1" incoming="flow35"/&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;bpmn2:EndEvent id="endevent2" name="End2" incoming="flow36"/&amp;gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Once you export the process to a bpmn 2.0 in the designer, you can use it in activiti.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Dec 2010 07:03:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multiple-end-or-start-events/m-p/18357#M8356</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2010-12-24T07:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple End or Start events</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multiple-end-or-start-events/m-p/18358#M8357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Oh cool, I'll definitely try out the HistoricProcessInstance class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry if I was a bit unclear about the code dump … yes the end events are in this dump from the foo.activiti file. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I've found that when I save it in my Activiti Designer and it is transformed (on save) into the foo.activiti.bpmn20.xml&amp;nbsp; or&amp;nbsp; exported (the Export to BPMN 2.0 XML right-click option) into the&amp;nbsp;&amp;nbsp; foo.bpmn20.xml&amp;nbsp;&amp;nbsp; , all but first end event nodes are missing. Trying to run unit tests on the foo.activiti.bpmn20.xml version of this process just generates an error right off the bat …&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;org.activiti.engine.ActivitiException: cvc-id.1: There is no ID/IDREF binding for IDREF 'endevent2'. | multiEndTests/multiends.activiti.bpmn20.xml | line 1 | column 1268&lt;BR /&gt;Invalid destination 'endevent2' of sequence flow 'flow36' | multiEndTests/multiends.activiti.bpmn20.xml | line 1 | column 1086&lt;BR /&gt;&lt;BR /&gt; at org.activiti.engine.impl.util.xml.Parse.throwActivitiExceptionForErrors(Parse.java:186)&lt;BR /&gt; at org.activiti.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:225)&lt;BR /&gt; at org.activiti.engine.impl.bpmn.deployer.BpmnDeployer.deploy(BpmnDeployer.java:63)&lt;BR /&gt; at org.activiti.engine.impl.db.DbRepositorySession.deployNew(DbRepositorySession.java:63)&lt;BR /&gt; at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:52)&lt;BR /&gt; at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:30)&lt;BR /&gt; at org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:22)&lt;BR /&gt; at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:37)&lt;BR /&gt; at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)&lt;BR /&gt; at org.activiti.engine.impl.RepositoryServiceImpl.deploy(RepositoryServiceImpl.java:43)&lt;BR /&gt; at org.activiti.engine.impl.repository.DeploymentBuilderImpl.deploy(DeploymentBuilderImpl.java:103)&lt;BR /&gt; at org.activiti.engine.impl.test.TestHelper.annotationDeploymentSetUp(TestHelper.java:93)&lt;BR /&gt; at org.activiti.engine.impl.test.AbstractActivitiTestCase.runBare(AbstractActivitiTestCase.java:83)&lt;BR /&gt; at junit.framework.TestResult$1.protect(TestResult.java:110)&lt;BR /&gt; at junit.framework.TestResult.runProtected(TestResult.java:128)&lt;BR /&gt; at junit.framework.TestResult.run(TestResult.java:113)&lt;BR /&gt; at junit.framework.TestCase.run(TestCase.java:124)&lt;BR /&gt; at junit.framework.TestSuite.runTest(TestSuite.java:232)&lt;BR /&gt; at junit.framework.TestSuite.run(TestSuite.java:227)&lt;BR /&gt; at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)&lt;BR /&gt; at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)&lt;BR /&gt; at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)&lt;BR /&gt; at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)&lt;BR /&gt; at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)&lt;BR /&gt; at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)&lt;BR /&gt; at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;so strangely it looks like the sequence flows are there, but not the end events.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just wanted to know if others are getting this issue, since I am not sure if it was just my installation of the Activiti Designer that is an issue or if it's a bug with Designer itself.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Dec 2010 15:08:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multiple-end-or-start-events/m-p/18358#M8357</guid>
      <dc:creator>yangyang_qian</dc:creator>
      <dc:date>2010-12-24T15:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple End or Start events</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multiple-end-or-start-events/m-p/18359#M8358</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;This is a bug in the Activiti Designer. Currently we only support one start and end event.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But that was mainly there for some first validation rules that were implemented, so there's no reason why we wouldn't allow multiple start and end events.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you create a JIRA issue for this?&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;Tijs Rademakers&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Lead developer Activiti Designer&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Dec 2010 10:10:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multiple-end-or-start-events/m-p/18359#M8358</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2010-12-27T10:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple End or Start events</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multiple-end-or-start-events/m-p/18360#M8359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've submitted JIRA ACT-474 .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Btw, I've settled with a workaround of using multiple ServiceTask nodes that handle all of the custom endstate behavior, and all of the flows just go to the same endState. I only did this to make it easier to move between the Activiti Designer and functional XML …&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Dec 2010 21:55:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multiple-end-or-start-events/m-p/18360#M8359</guid>
      <dc:creator>yangyang_qian</dc:creator>
      <dc:date>2010-12-27T21:55:01Z</dc:date>
    </item>
  </channel>
</rss>

