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.
- Drag and drop Process from the palette.
- 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.
- 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:
- Drag and drop Human task from the
palette.
- Rename the new human task component to HelloWorldTask.
- Add the interface HelloWorldTask to
the new human task component.
- 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:
- Press Ctrl-S to save your work so far.
- 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.
- 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.
- 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.
- 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.
- Rename the new import to HelloWorldImport.
- Wire the HelloWorldProcess process
component to the HelloWorldImport import. Your
assembly diagram so far should look like this:
- 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.
- Save the Assembly Diagram editor.