Generating BPEL files programmatically?

前端 未结 5 409
猫巷女王i
猫巷女王i 2021-01-12 13:36

Is there a way to generate BPEL programmatically in Java?

I tried using the BPEL Eclipse Designer API to write this code:

 Process process = null; 
         


        
5条回答
  •  情话喂你
    2021-01-12 13:55

    In case anyone is looking to solve the above problem while still running inside eclipse environment.

    The problem can be resolved as stated by Luca Pino here by adding:

    AdapterRegistry.INSTANCE.registerAdapterFactory( BPELPackage.eINSTANCE, BasicBPELAdapterFactory.INSTANCE );
    

    before the resource creation line i.e.

    Resource bpelResource = rSet.createResource(uri);
    

    Note: Another solution, to the same problem, also stating how to resolve the dependencies to make this code work, can be found in my other answer here.

提交回复
热议问题