<?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 Error when loading bmpn20.xml with eventGateway in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/error-when-loading-bmpn20-xml-with-eventgateway/m-p/99028#M68370</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;SPAN&gt;I'm using Activiti 5.9 with designer 5.9.1 on eclipse indigo.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I find 2 problems.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) First, the designer wants to work with .bpmn files, while deployment (in a test case for example) wants .bpmn20.xml to parse correctly. Of course the workaround is to rename the file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) I have a file that I renamed which wont load because this strange error: &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;org.activiti.engine.ActivitiException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'eventGateway'. One of '{"&lt;A href="http://www.omg.org/spec/BPMN/20100524/MODEL%22:flowElement" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/BPMN/20100524/MODEL':flowElement&lt;/A&gt;, "&lt;A href="http://www.omg.org/spec/BPMN/20100524/MODEL%22:artifact" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/BPMN/20100524/MODEL':artifact&lt;/A&gt;, "&lt;A href="http://www.omg.org/spec/BPMN/20100524/MODEL%22:resourceRole" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/BPMN/20100524/MODEL':resourceRole&lt;/A&gt;, "&lt;A href="http://www.omg.org/spec/BPMN/20100524/MODEL%22:correlationSubscription" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/BPMN/20100524/MODEL':correlationSubscription&lt;/A&gt;, "&lt;A href="http://www.omg.org/spec/BPMN/20100524/MODEL%22:supports" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/BPMN/20100524/MODEL':supports&lt;/A&gt;}' is expected. | ventas/offline/assign/ventaoffline.bpmn20.xml | line 56 | column 33&lt;BR /&gt;cvc-id.1: There is no ID/IDREF binding for IDREF 'gateway1'. | ventas/offline/assign/ventaoffline.bpmn20.xml | line 159 | column 15&lt;BR /&gt;Invalid source 'gateway1' of sequence flow 'flow17' | ventas/offline/assign/ventaoffline.bpmn20.xml | line 74 | column 102&lt;BR /&gt;Invalid destination 'gateway1' of sequence flow 'flow21' | ventas/offline/assign/ventaoffline.bpmn20.xml | line 78 | column 82&lt;BR /&gt;Invalid source 'gateway1' of sequence flow 'flow22' | ventas/offline/assign/ventaoffline.bpmn20.xml | line 79 | column 101&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.activiti.engine.impl.util.xml.Parse.throwActivitiExceptionForErrors(Parse.java:186)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.activiti.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:222)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.activiti.engine.impl.bpmn.deployer.BpmnDeployer.deploy(BpmnDeployer.java:86)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.activiti.engine.impl.persistence.deploy.DeploymentCache.deploy(DeploymentCache.java:38)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.activiti.engine.impl.persistence.entity.DeploymentManager.insertDeployment(DeploymentManager.java:42)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:58)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:30)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:24)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:42)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.activiti.engine.impl.RepositoryServiceImpl.deploy(RepositoryServiceImpl.java:46)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.activiti.engine.impl.repository.DeploymentBuilderImpl.deploy(DeploymentBuilderImpl.java:106)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.activiti.engine.impl.test.TestHelper.annotationDeploymentSetUp(TestHelper.java:96)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.activiti.engine.test.ActivitiRule.starting(ActivitiRule.java:100)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.junit.rules.TestWatchman$1.evaluate(TestWatchman.java:51)&lt;BR /&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;/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;and the file is marked with an error on the workspace:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;PackageNotFoundException: Package with uri '&lt;A href="http://www.omg.org/spec/BPMN/20100524/MODEL" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/BPMN/20100524/MODEL&lt;/A&gt;' not found. (platform:/resource/ventas-offline/src/test/java/&lt;BR /&gt; ventas/offline/assign/VentasOfflineTest.testAssignment.bpmn20.xml, 2, 469)&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;where the filename shown is the old file name…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;looks like some catching on eclipse? anyone can help with this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 May 2012 22:48:08 GMT</pubDate>
    <dc:creator>pitagoras</dc:creator>
    <dc:date>2012-05-07T22:48:08Z</dc:date>
    <item>
      <title>Error when loading bmpn20.xml with eventGateway</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-when-loading-bmpn20-xml-with-eventgateway/m-p/99028#M68370</link>
      <description>HiI'm using Activiti 5.9 with designer 5.9.1 on eclipse indigo.I find 2 problems.1) First, the designer wants to work with .bpmn files, while deployment (in a test case for example) wants .bpmn20.xml to parse correctly. Of course the workaround is to rename the file.2) I have a file that I renamed w</description>
      <pubDate>Mon, 07 May 2012 22:48:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-when-loading-bmpn20-xml-with-eventgateway/m-p/99028#M68370</guid>
      <dc:creator>pitagoras</dc:creator>
      <dc:date>2012-05-07T22:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error when loading bmpn20.xml with eventGateway</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-when-loading-bmpn20-xml-with-eventgateway/m-p/99029#M68371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For the first part of your question, you don't need to rename the file. You can just name the resource when you add the input stream to one that contains the bpmn20.xml extension (see below - I noticed thats what the 5.9.1 designer does when you "Generate Unit Test" from the bpmn file)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;private String filename = "C:\…\process1.bpmn";&lt;BR /&gt;repositoryService.createDeployment().addInputStream("process1.bpmn20.xml",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; new FileInputStream(filename)).deploy();&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I find it surprising that the designer change made it to a released version before the engine changes did &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sang&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 20:57:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-when-loading-bmpn20-xml-with-eventgateway/m-p/99029#M68371</guid>
      <dc:creator>sangv</dc:creator>
      <dc:date>2012-05-11T20:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error when loading bmpn20.xml with eventGateway</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-when-loading-bmpn20-xml-with-eventgateway/m-p/99030#M68372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;pitagoras, in Activiti Designer 5.9.1 is error with name of gateway which you want to use. You need manually in your bpmn20.xml change eventGateway to eventBasedGateway like that &amp;lt;eventBasedGateway&amp;gt;&amp;lt;/eventBasedGateway&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 May 2012 17:28:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-when-loading-bmpn20-xml-with-eventgateway/m-p/99030#M68372</guid>
      <dc:creator>jakub_piecuch</dc:creator>
      <dc:date>2012-05-12T17:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error when loading bmpn20.xml with eventGateway</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-when-loading-bmpn20-xml-with-eventgateway/m-p/99031#M68373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;pitagoras, in Activiti Designer 5.9.1 is error with name of gateway which you want to use. You need manually in your bpmn20.xml change eventGateway to eventBasedGateway like that &amp;lt;eventBasedGateway&amp;gt;&amp;lt;/eventBasedGateway&amp;gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes thanks, I found it out and posted in the designer forum, they say next week it will be patched to update the plugin.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 May 2012 17:31:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-when-loading-bmpn20-xml-with-eventgateway/m-p/99031#M68373</guid>
      <dc:creator>pitagoras</dc:creator>
      <dc:date>2012-05-12T17:31:21Z</dc:date>
    </item>
  </channel>
</rss>

