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

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.

主站蜘蛛池模板: 清流县| 彭阳县| 双鸭山市| 安仁县| 天门市| 广丰县| 靖江市| 镇赉县| 竹山县| 柳林县| 天水市| 仪陇县| 太和县| 新绛县| 壤塘县| 宜阳县| 平凉市| 铅山县| 蓬安县| 永宁县| 乳山市| 恭城| 临高县| 西乌| 无为县| 双流县| 通渭县| 台东县| 闻喜县| 兴和县| 广西| 昭通市| 景宁| 彩票| 淳安县| 微山县| 泗阳县| 家居| 桃源县| 紫金县| 定陶县|