1 Reply Latest reply on Aug 6, 2009 4:00 AM by Joram Barrez

    JBPM + EMF/UML2 Crashes

    Toacy Oliveira Newbie

      Hi all,

      I'm trying to execute JPDL Process (4.0) that modifies an existing .UML file using the UML2 Library and i have to execute a useless instruction just to somehow get the UML initialized. The code fragment is bellow. If I remove the UMLFactory.eINSTANCE.createClass().setName(""); the code crashes.
      It's important to mention that if I remove JPDL, everything runs OK!!


      // extremely weird behavior. if I remove the line bellow the code crashes.
      // it seems something inside RMf must be initialized.
      ///////////////////////////////////////////////
      UMLFactory.eINSTANCE.createClass().setName("");
      ///////////////////////////////////////////////


      org.eclipse.uml2.uml.Package topPackage = UMLModelWrapper.loadModel(URI.createURI(PATH_NAME).appendSegment(
      MODEL_NAME).appendFileExtension(UMLResource.FILE_EXTENSION));

      SymbolTable.getInstance().umlModel = topPackage;

      cheers