Package org.jbpm.designer.web.profile

Examples of org.jbpm.designer.web.profile.IDiagramProfile.createMarshaller()


        } else if(actionParam != null && actionParam.equals("checkErrors")) {
          String retValue = "false";
          IDiagramProfile profile = _profileService.findProfile(req, req.getParameter("profile"));
            String json = req.getParameter("data");
            try {
        String xmlOut = profile.createMarshaller().parseModel(json, preProcessingParam);
        String jsonIn = profile.createUnmarshaller().parseModel(xmlOut, profile, preProcessingParam);
        if(jsonIn == null || jsonIn.length() < 1) {
          retValue = "true";
        }
      } catch (Throwable t) {
View Full Code Here


        DroolsFactoryImpl.init();
                BpsimFactoryImpl.init();

        Bpmn2JsonUnmarshaller unmarshaller = new Bpmn2JsonUnmarshaller();
        Definitions def = ((Definitions) unmarshaller.unmarshall(json, preprocessingData).getContents().get(0));
        String processXML = profile.createMarshaller().parseModel(json, preprocessingData);
        // find the process id
        List<RootElement> rootElements =  def.getRootElements();
        String processId = "";
        for(RootElement root : rootElements) {
          if(root instanceof Process) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.