EasyBPEL provides a feature to generate a BPEL skeleton from a WSDL file.
This feature is used in the studio.
The generated BPEL is right, except that the "myRole" attribute of the main partner is invalid.
It does not match the one in the generated Artifacts WSDL.
If we keep the incorrect myRole and that we try to introspect the BPEL to get the URI of the imported documents, we get a NPE.
The stack trace is the following:
java.lang.NullPointerException
at com.ebmwebsourcing.easybpel.model.bpel.impl.wsdlImports.DescriptionsImpl.getProcessInterfaces(DescriptionsImpl.java:569)
at com.ebmwebsourcing.easybpel.model.bpel.tools.validator.AnalysorResult.<init>(AnalysorResult.java:54)
at com.ebmwebsourcing.easybpel.model.bpel.tools.validator.BPELAnalyser.analyze(BPELAnalyser.java:74)
...
This exception does not occur if the myRole attribute is right and exists in the Artifacts WSDL.