1 Reply Latest reply on Mar 20, 2018 7:28 PM by rafael.pino

    java generics in JBPM process variables

    bwallis42

      I've found that using a java generic type such as "java.util.List<java.lang.String>" as the custom type in a process variable is a bad thing to do... After giving an error (below) you end up with no workflow at all, the editor can no longer open it and if you view the xml source it is an empty process template.

      From other questions I've seen in the forum I can understand that using generic java types may not be a good thing in a process variable but it really shouldn't loose your workflow if you do.

       

      The error I get is (this is with JBPM 7.1.0.FInal using the jboss/jbpm-workflow-showcase docker image)

       

      23:20:57,834 INFO  [org.guvnor.common.services.builder.ResourceChangeIncrementalBuilder] (Thread-104) Incremental build request received for: default://master@myrepo/evaluation/src/main/resources/evaluation.bpmn2 (updated).
      23:20:57,918 ERROR [org.drools.core.xml.ExtensibleXmlParser] (Thread-187) Node Info: id:_stringsItem name:
      Parser message: (null: 8, 71): The value of attribute "structureRef" associated with an element type "bpmn2:itemDefinition" must not contain the '<' character.
      23:20:57,925 ERROR [stderr] (Thread-187) org.xml.sax.SAXParseException; lineNumber: 8; columnNumber: 71; The value of attribute "structureRef" associated with an element type "bpmn2:itemDefinition" must not contain the '<' character.
      23:20:57,926 ERROR [stderr] (Thread-187) at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:201)
      23:20:57,926 ERROR [stderr] (Thread-187) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:175)
      23:20:57,926 ERROR [stderr] (Thread-187) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:398)
      23:20:57,926 ERROR [stderr] (Thread-187) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:325)
      23:20:57,926 ERROR [stderr] (Thread-187) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:282)
      23:20:57,927 ERROR [stderr] (Thread-187) at org.apache.xerces.impl.XMLScanner.reportFatalError(XMLScanner.java:1467)
      23:20:57,927 ERROR [stderr] (Thread-187) at org.apache.xerces.impl.XMLScanner.scanAttributeValue(XMLScanner.java:904)
      23:20:57,927 ERROR [stderr] (Thread-187) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanAttribute(XMLNSDocumentScannerImpl.java:529)
      23:20:57,927 ERROR [stderr] (Thread-187) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:181)
      23:20:57,927 ERROR [stderr] (Thread-187) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1653)