< Previous | Next >

Populate the module

In the Assembly Diagram editor for the HelloWorldProcess module you now add the process and human task components, as well as the import and export components.

Follow these steps:

  1. Drag and drop Process from the palette.
  2. Rename the new process component to HelloWorldProcess.
    Note: Click the component to enter rename mode. If you accidentally double click you get a confirmation to create the implementation. If this happens, press Esc to cancel, and use the right-click Rename action.
  3. Add the interface HelloWorldProcess to the new process component by selecting the component and clicking the circled I icon in the hover bar. The component should end up looking like this:
    Picture of HelloWorldProcess component with interface added
  4. Drag and drop Human task from the palette.
  5. Rename the new human task component to HelloWorldTask.
  6. Add the interface HelloWorldTask to the new human task component.
  7. Wire the HelloWorldProcess process component to the HelloWorldTask human task component. Click OK when the Add Wire prompt appears. Here is what you should have so far:
    Picture of HelloWorldProcess wired to HelloWorldTask
  8. Press Ctrl-S to save your work so far.
  9. Right-click the HelloWorldProcess process component and select Generate Export > Web Service Binding. Select the first transport option of SOAP1.2/HTTP. An export is created in the Assembly Diagram.
  10. Rename the new export by right-clicking on the export and selecting Refactor > Rename. The Rename Artifact dialog appears. Enter HelloWorldExport and click OK.
    Note: Refactoring is an action available throughout WebSphere Integration Developer that allows you to make a change and propagate that change through all the impacted files. In this case it is necessary to use refactoring in order to change the WSDL port.
  11. In the Business Integration view, expand the HelloWorldMediation project and then the Assembly Diagram category, and then select HelloWorldMediationExport and drag it to the Assembly Diagram editor canvas and drop it. The Component Creation dialog appears.
  12. Select Import with SCA Binding and click OK. An SCA import component is generated that can be used to invoke the module from the Hello World Part 1 sample.
  13. Rename the new import to HelloWorldImport.
  14. Wire the HelloWorldProcess process component to the HelloWorldImport import. Your assembly diagram so far should look like this:
    Picture of wired assembly diagram
  15. By default the Assembly Diagram editor is in automatic layout mode, so it decides where to put each component. However, it will leave automatic layout mode as soon as you manually adjust the position of a component. Look on the status line at the bottom to see whether automatic layout is on or off: If is off, you can turn it on again by right-clicking in the Assembly Diagram editor and selecting Automatic Layout. Alternatively, you can leave it off, and do a one-time layout by selecting Layout Contents.
    Status in assembly diagram showing that automatic layout is on
  16. Save the Assembly Diagram editor.





Feedback



(C) Copyright IBM Corporation 2007, 2008. All Rights Reserved.

< Previous | Next >