<?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: BpmnParse throws Errors after 5.11 upgrade in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/bpmnparse-throws-errors-after-5-11-upgrade/m-p/143783#M100588</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would recommend updating the release notes to let users know that this is a breaking change.&amp;nbsp; We upgraded only to find that our previously deployed processes now cause parse exceptions - we need to either downgrade or delete all previous deployments, neither of which is a great choice.&amp;nbsp; Based on jcavezian's patch, it seems like there is a potential way to update existing processes and avoiding the problem entirely.&amp;nbsp; I am amazed more users are not experiencing this issue!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Mar 2013 21:23:14 GMT</pubDate>
    <dc:creator>rkroll</dc:creator>
    <dc:date>2013-03-25T21:23:14Z</dc:date>
    <item>
      <title>BpmnParse throws Errors after 5.11 upgrade</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/bpmnparse-throws-errors-after-5-11-upgrade/m-p/143780#M100585</link>
      <description>Hello everybody,I have decided to upgrade Activiti-Engine from 5.10 to 5.11 in my JEE application.Librairies and database schema are up-to-date now.After running around my application, I add some errors such as Exclusive Gateway 'exclusivegateway3' has outgoing sequence flow 'XXX' which is the defau</description>
      <pubDate>Tue, 15 Jan 2013 10:17:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/bpmnparse-throws-errors-after-5-11-upgrade/m-p/143780#M100585</guid>
      <dc:creator>jcavezian</dc:creator>
      <dc:date>2013-01-15T10:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: BpmnParse throws Errors after 5.11 upgrade</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/bpmnparse-throws-errors-after-5-11-upgrade/m-p/143781#M100586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm afraid there is no easy way to fix this, other than updating the XML's in the ACT_RE_BYTEARRAY table, for the processes that cause the error to be thrown. There is no way of disabling that check/error…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 10:57:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/bpmnparse-throws-errors-after-5-11-upgrade/m-p/143781#M100586</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-01-15T10:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: BpmnParse throws Errors after 5.11 upgrade</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/bpmnparse-throws-errors-after-5-11-upgrade/m-p/143782#M100587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was kind of expecting this… But I wonder how you could let this append ?!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You could have provided a patch with this !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, here is a snippet of my own patch :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;/**&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Remove 'default' attribute on 'exclusiveGateway' nodes.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * @param bytes xml binary data&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * @return correct binary data&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * @throws SAXException exception&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * @throws IOException exception&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * @throws ParserConfigurationException exception&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private byte[] removeExclusiveGatewaysDefaultAttribute(byte[] bytes) throws SAXException, IOException, ParserConfigurationException {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ByteArrayInputStream inputStream = new ByteArrayInputStream(bytes);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Reader reader = new InputStreamReader(inputStream, "UTF-8");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; InputSource is = new InputSource(reader);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; is.setEncoding("UTF-8");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DocumentBuilder db = DocumentBuilderFactory.newInstance().newDocumentBuilder(); &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Document document = db.parse(is);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NodeList exclusiveGateways = document.getElementsByTagName("exclusiveGateway");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (int i = 0; i &amp;lt; exclusiveGateways.getLength(); i++) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Node node = exclusiveGateways.item(i);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (node.getAttributes().getNamedItem("default") != null) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; node.getAttributes().removeNamedItem("default");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return getStringFromDoc(document).getBytes("UTF-8");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /**&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Serialize a Document to String.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * @param doc doc to serialize&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * @return serialized doc&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * @throws IOException exception&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private String getStringFromDoc(org.w3c.dom.Document doc) throws IOException&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; StringWriter sw = new StringWriter();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OutputFormat format = new OutputFormat(doc);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; format.setIndenting(true);&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XMLSerializer serializer = new XMLSerializer(sw, format);&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; serializer.serialize(doc);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return sw.getBuffer().toString(); &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;The idea is to iterate on each deployment from act_re_deployment table and retrieve records from act_ge_bytearray table, with the foreign key deployment_id_.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Only process records matching &lt;/SPAN&gt;&lt;CODE&gt;generated_ = false and name_ like '%.xml'&lt;/CODE&gt;&lt;SPAN&gt;The orm-dao layer is really easy to implement, that's why I don't provide it here…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards, Jerome&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2013 14:56:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/bpmnparse-throws-errors-after-5-11-upgrade/m-p/143782#M100587</guid>
      <dc:creator>jcavezian</dc:creator>
      <dc:date>2013-01-30T14:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: BpmnParse throws Errors after 5.11 upgrade</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/bpmnparse-throws-errors-after-5-11-upgrade/m-p/143783#M100588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would recommend updating the release notes to let users know that this is a breaking change.&amp;nbsp; We upgraded only to find that our previously deployed processes now cause parse exceptions - we need to either downgrade or delete all previous deployments, neither of which is a great choice.&amp;nbsp; Based on jcavezian's patch, it seems like there is a potential way to update existing processes and avoiding the problem entirely.&amp;nbsp; I am amazed more users are not experiencing this issue!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2013 21:23:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/bpmnparse-throws-errors-after-5-11-upgrade/m-p/143783#M100588</guid>
      <dc:creator>rkroll</dc:creator>
      <dc:date>2013-03-25T21:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: BpmnParse throws Errors after 5.11 upgrade</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/bpmnparse-throws-errors-after-5-11-upgrade/m-p/143784#M100589</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 agree of course that the issue being raised is not handled very elegantly by Activiti.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However, having a default flow with a condition is not a good implementation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But I think there's a good solution to this issue available in Activiti (somewhat hidden).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can deploy a new version of the process definition that corrects the issue and then use the SetProcessDefinitionVersionCmd to move the existing process instances to the new process definition.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Again, we should prevent introducing new parsing issues as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2013 13:58:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/bpmnparse-throws-errors-after-5-11-upgrade/m-p/143784#M100589</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-03-26T13:58:10Z</dc:date>
    </item>
  </channel>
</rss>

