<legend id='vitcF'><style id='vitcF'><dir id='vitcF'><q id='vitcF'></q></dir></style></legend>
        <i id='vitcF'><tr id='vitcF'><dt id='vitcF'><q id='vitcF'><span id='vitcF'><b id='vitcF'><form id='vitcF'><ins id='vitcF'></ins><ul id='vitcF'></ul><sub id='vitcF'></sub></form><legend id='vitcF'></legend><bdo id='vitcF'><pre id='vitcF'><center id='vitcF'></center></pre></bdo></b><th id='vitcF'></th></span></q></dt></tr></i><div id='vitcF'><tfoot id='vitcF'></tfoot><dl id='vitcF'><fieldset id='vitcF'></fieldset></dl></div>

        <small id='vitcF'></small><noframes id='vitcF'>

          <bdo id='vitcF'></bdo><ul id='vitcF'></ul>
        <tfoot id='vitcF'></tfoot>

        以编程方式生成 BPEL 文件?

        Generating BPEL files programmatically?(以编程方式生成 BPEL 文件?)
        <legend id='zvryZ'><style id='zvryZ'><dir id='zvryZ'><q id='zvryZ'></q></dir></style></legend>
      1. <small id='zvryZ'></small><noframes id='zvryZ'>

            <tbody id='zvryZ'></tbody>

              <bdo id='zvryZ'></bdo><ul id='zvryZ'></ul>

                <i id='zvryZ'><tr id='zvryZ'><dt id='zvryZ'><q id='zvryZ'><span id='zvryZ'><b id='zvryZ'><form id='zvryZ'><ins id='zvryZ'></ins><ul id='zvryZ'></ul><sub id='zvryZ'></sub></form><legend id='zvryZ'></legend><bdo id='zvryZ'><pre id='zvryZ'><center id='zvryZ'></center></pre></bdo></b><th id='zvryZ'></th></span></q></dt></tr></i><div id='zvryZ'><tfoot id='zvryZ'></tfoot><dl id='zvryZ'><fieldset id='zvryZ'></fieldset></dl></div>
                <tfoot id='zvryZ'></tfoot>

                  本文介绍了以编程方式生成 BPEL 文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  有没有办法在 Java 中以编程方式生成 BPEL?

                  Is there a way to generate BPEL programmatically in Java?

                  我尝试使用 BPEL Eclipse Designer API 来编写这段代码:

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

                   Process process = null; 
                   try {
                  
                  
                  
                          Resource.Factory.Registry reg =Resource.Factory.Registry.INSTANCE;
                  
                          Map<String, Object> m = reg.getExtensionToFactoryMap();
                  
                          m.put("bpel", new BPELResourceFactoryImpl());//it works with XMLResourceFactoryImpl()
                  
                  
                  
                           //create resource
                  
                           URI uri =URI.createFileURI("myBPEL2.bpel");
                  
                  
                  
                           ResourceSet rSet = new ResourceSetImpl();
                  
                            Resource bpelResource = rSet.createResource(uri);
                  
                  
                  
                            //create/populate process
                  
                            process = BPELFactory.eINSTANCE.createProcess();
                  
                            process.setName("myBPEL");
                  
                            Sequence mySeq = BPELFactory.eINSTANCE.createSequence();
                  
                            mySeq.setName("mainSequence");
                  
                            process.setActivity(mySeq);
                  
                  
                  
                            //save resource
                  
                            bpelResource.getContents().add(process);
                  
                            Map<String,String> map= new HashMap<String, String>();
                            map.put("bpel", "http://docs.oasis-open.org/wsbpel/2.0/process/executable");
                            map.put("tns", "http://matrix.bpelprocess");
                            map.put("xsd", "http://www.w3.org/2001/XMLSchema");
                            bpelResource.save(map);
                  
                      }
                  
                  
                  
                      catch (Exception e) {
                  
                            e.printStackTrace();
                  
                      }
                  
                  
                  }
                  

                  但我收到一个错误:

                  INamespaceMap 不能附加到 eObject ...

                  我阅读了 Simon 的 这条消息:

                  I read this message by Simon:

                  我知道在 Eclipse 之外使用 BPEL 模型可能是可取的,但我们从未打算这样做.因此,这不受支持

                  I understand that using the BPEL model outside of eclipse might be desirable, but it was never intended by us. Thus, this isn't supported

                  还有其他 API 可以提供帮助吗?

                  Is there any other API that can help?

                  推荐答案

                  已经使用 统一框架 API 添加必要的类来处理相关性之后.@Daniel 所说的 BPELUnit 似乎是另一种选择.

                  This has been solved using the unify framework API after adding the necessary classes to handle correlation. BPELUnit stated by @Daniel seems to be another alternative.

                  这篇关于以编程方式生成 BPEL 文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  How to send data to COM PORT using JAVA?(如何使用 JAVA 向 COM PORT 发送数据?)
                  How to make a report page direction to change to quot;rtlquot;?(如何使报表页面方向更改为“rtl?)
                  Use cyrillic .properties file in eclipse project(在 Eclipse 项目中使用西里尔文 .properties 文件)
                  Is there any way to detect an RTL language in Java?(有没有办法在 Java 中检测 RTL 语言?)
                  How to load resource bundle messages from DB in Java?(如何在 Java 中从 DB 加载资源包消息?)
                  How do I change the default locale settings in Java to make them consistent?(如何更改 Java 中的默认语言环境设置以使其保持一致?)

                  <tfoot id='8JFPd'></tfoot>

                    <small id='8JFPd'></small><noframes id='8JFPd'>

                        <tbody id='8JFPd'></tbody>

                      <i id='8JFPd'><tr id='8JFPd'><dt id='8JFPd'><q id='8JFPd'><span id='8JFPd'><b id='8JFPd'><form id='8JFPd'><ins id='8JFPd'></ins><ul id='8JFPd'></ul><sub id='8JFPd'></sub></form><legend id='8JFPd'></legend><bdo id='8JFPd'><pre id='8JFPd'><center id='8JFPd'></center></pre></bdo></b><th id='8JFPd'></th></span></q></dt></tr></i><div id='8JFPd'><tfoot id='8JFPd'></tfoot><dl id='8JFPd'><fieldset id='8JFPd'></fieldset></dl></div>
                          • <bdo id='8JFPd'></bdo><ul id='8JFPd'></ul>
                          • <legend id='8JFPd'><style id='8JFPd'><dir id='8JFPd'><q id='8JFPd'></q></dir></style></legend>