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

Moving nodes/actions in Eclipse OEPE by drag-and-drop

This recipe will just present a simple approach for doing refactoring of nodes and actions within a single message flow. It uses the drag-and-drop functionality of the Eclipse OEPE to move around the items on the graphical representation of the message flow.

Getting ready

You can import the OSB project containing the base setup for this recipe into Eclipse OEPE from \chapter2\getting-ready\moving-nodes\actions-by-drag-and-drop.

How to do it...

If an existing message flow needs to be refactored and some nodes or actions need to be moved around, the Eclipse OEPE provides us with the drag-and-drop functionality, and a simple way to achieve this. For example to move a Pipeline Pair node from one place to another, perform the following actions in Eclipse OEPE:

  1. Open the CustomerManagement proxy service and navigate to the Message Flow tab.
  2. Select the node to move, for example, the PipelinePair node in the FindCustomer branch.
  3. Drag the selected node and immediately Eclipse OEPE will show all the valid contexts, where the node could be dropped by a green circle. In our case, as the next screenshot shows, these are three places:
    How to do it...
  4. Drop it in the StoreCustomer branch, just above the StoreCustomerRoute route node. The circle will change to yellow before the selected node can be dropped.
  5. The whole PipelinePair including all other items it might contain, Stage in our case, will be moved as well.

    We have moved a whole node with all subitems from one place to another. The same can be done on a single-action level as well. To move an action to another place, similarly perform the following steps in Eclipse OEPE:

  6. Select the Log action inside the Stage nested in the PipelinePair node.
  7. Drag the Log action to the Routing action of the StoreCustomerRoute and drop it on the Request Action flow. Again the green circles show the places where a drop of the selected item is valid.
    How to do it...

How it works...

This functionality is only available within the same message flow and does not work from one proxy service to another. In that case, you need to copy the nodes as shown by the next recipe Copying nodes/actions from one place to another.

主站蜘蛛池模板: 兴城市| 临安市| 通州区| 蓬溪县| 大宁县| 临颍县| 新津县| 大渡口区| 萝北县| 浦东新区| 隆回县| 平远县| 芦山县| 湛江市| 天峨县| 南宁市| 新巴尔虎右旗| 茌平县| 沂水县| 宁德市| 客服| 大化| 色达县| 景洪市| 花莲县| 宝应县| 南通市| 嘉定区| 灵璧县| 桐乡市| 新绛县| 天柱县| 乌兰浩特市| 红桥区| 岱山县| 平昌县| 金堂县| 利辛县| 云阳县| 德江县| 和硕县|