官术网_书友最值得收藏!

  • Oracle Service Bus 11g Development Cookbook
  • Guido Schmutz Edwin Biemond Jan van Zoggel Mischa K?lliker Eric Elzinga
  • 325字
  • 2021-08-20 15:48:09

Copying nodes/actions from one place to another

This recipe will just present a simple approach for doing refactoring of nodes and actions. It uses the copy/paste functionality of the Eclipse OEPE to copy a node/action from one place to another.

Getting ready

You can import the OSB project containing the base set up for this recipe into Eclipse OEPE from \chapter2\getting-ready\copying-nodes-actions.

How to do it...

Often when creating a new message flow, some node/actions are very similar. Instead of creating all of them from scratch, there is a way to copy them in Eclipse OEPE. To duplicate a PipelinePair node, perform the following steps:

  1. Open the CustomerManagement proxy service and navigate to the Message Flow tab.
  2. Right-click on the node/action to copy, for example, the PipelinePair node in the FindCustomer branch and select Copy.
  3. Right-click on the PipelinePair node and select Paste.
  4. The PipelinePair has been duplicated under the new name PipelinePair1.
    How to do it...
  5. The whole PipelinePair node including all nested nodes and actions is duplicated.
  6. The new node can now be moved to another place, if necessary, by applying the previous recipe Moving nodes/actions in Eclipse OEPE by drag-and-drop.

How it works...

The copy functionality in Eclipse OEPE provides a simple and efficient way to duplicate functionality in another place. This is handy because often the same kind of functionality is needed and there is no way to reuse code within a single message flow other than by copying it.

Sometimes it might not be possible to paste at the right place because the menu item is not available in both the context-sensitive menu as well as the main menu. In that case, duplicate the given node/action where it is allowed and then move it by applying the Moving nodes/actions in Eclipse OEPE by drag-and-drop recipe.

The copy/paste functionality also works across proxy services. Just open both artifacts and copy from one to the other. This is similar to copying text from one editor to another.

主站蜘蛛池模板: 邵武市| 龙南县| 玉林市| 长海县| 永兴县| 东至县| 双桥区| 尖扎县| 紫云| 河北省| 广宗县| 兰溪市| 云林县| 枝江市| 泗洪县| 定南县| 奇台县| 怀宁县| 长武县| 新干县| 民和| 天全县| 临泉县| 哈巴河县| 陕西省| 甘泉县| 侯马市| 安龙县| 开平市| 右玉县| 衡阳市| 永靖县| 磐安县| 永丰县| 武鸣县| 南郑县| 安多县| 海淀区| 固阳县| 鄂尔多斯市| 福贡县|