3 Replies Latest reply on Aug 2, 2012 4:56 PM by tsurdilovic

    Unresolved Reference with Designer 2.2

    mpgong

      Hello,

       

      I having an issue with displaying my BPMN diagram in the web designer after i make a data association for one of my tasks.  I get this exception :

       

      (null: 168, 36): cvc-complex-type.2.4.b: The content of element 'bpmn2:dataInputAssociation' is not complete. One of '{"http://www.omg.org/spec/BPMN/20100524/MODEL":sourceRef, "http://www.omg.org/spec/BPMN/20100524/MODEL":targetRef}' is expected.
      org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Unresolved reference 'sharepointParams'. (inputStream://dummyUriWithValidSuffix.xml, 167, 60)
           at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.handleErrors(XMLLoadImpl.java:83)
           at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:191)
           at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLResourceImpl.java:180)
           at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1494)
           at org.jbpm.designer.web.profile.impl.JbpmProfileImpl.getDefinitions(JbpmProfileImpl.java:273)
           at org.jbpm.designer.web.profile.impl.JbpmProfileImpl$2.parseModel(JbpmProfileImpl.java:252)
           at org.jbpm.designer.web.repository.impl.UUIDBasedJbpmRepository.load(UUIDBasedJbpmRepository.java:35)
           at org.jbpm.designer.web.server.UUIDBasedRepositoryServlet.doGet(UUIDBasedRepositoryServlet.java:120)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
           at org.jbpm.designer.web.filter.impl.PluggableFilter.doFilter(PluggableFilter.java:70)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
           at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:151)
           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
           at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:897)
           at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:626)
           at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:2033)
      

       

      Does anyone know why i'm getting this and how i can get back to my diagram to fix it?  When i try to open the diagram it is blank, so i can't seem to fix it.  Do  i need to pull it into eclipse and use the text editor to undo my association?

       

      Thanks

        • 1. Re: Unresolved Reference with Designer 2.2
          tsurdilovic

          You should upgrade to jBPM Designer 2.3.0.Final (http://blog.athico.com/2012/07/jbpm-designer-230final-released.html). You can download it and follow installation instructions from here: http://sourceforge.net/projects/jbpm/files/designer/designer-2.3/.

           

          There is no need to move your process to Eclipse. If you upgrade your Guvnor to 5.4.x or 5.5.x you will no longer "loose" your processes if they contain issues. In your case if the process returns blank, you can still get to it's BPMN2 via the Guvnor REST api, for example lets say you have a process asset called "myProcess" in the Guvnor "defaultPackage":

           

          localhost:8080/drools-guvnor/rest/packages/defaultPackage/assets/myProcess/source

           

          will give you your BPMN2. Now you can use the Designer import from bpmn2 functionality to add it back if you so wish.

           

          Either way an upgrade of Designer and possibly Guvnor should get you moving in the right direction.

           

          Hope this helps.

          • 2. Re: Unresolved Reference with Designer 2.2
            mpgong

            Thanks for the response, we were going to upgrade soon.

             

            I think the problem is what i set for the from and to in the assignment when using the "mapped to" assignment type.  I think i was trying to map the data input of the service node to a process variable but instead it should be the other way.

            • 3. Re: Unresolved Reference with Designer 2.2
              tsurdilovic

              We need to improve the error checking around data inputs/outputs and assignments overall. Would be nice if you can open a jBPM Jira with your findings and opinion on how to make it better so we can add that for the future.