This section describes how to prepare your environment to work
with the samples. In what follows, sample_folder refers to
the folder in which the samples reside, andWBI_folder refers
to the folder containing your current IBM WebSphere Business
Integration installation.
- Create the queues This tutorial requires that six local
queues be defined in WebSphere MQ Workflow queue manager. You
create these either via the WebSphere MQ Explorer application or by
typing RUNMQSC FMCQM at the command line and issuing the
following commands:
- DEFINE QL('MQWFCONN.ERROR')
- DEFINE QL('MQWFCONN.ARCHIVE')
- DEFINE QL('MQWFCONN.IN_PROGRESS')
- DEFINE QL('MQWFCONN.REPLYTO')
- DEFINE QL('MQWFCONN.UNSUBSCRIBED')
- DEFINE QL('CWLDINPUTQ')
- Create business object definitions--optional Business
object definition files for the WebSphere MQ Workflow data
structures already exist, but performing this step demonstrates the
FDLBORGEN utility, which converts data structures to business
objects. To use this utility:
- From a command line, change to directory
WBI_folder/connectors/WebSphereMQWorkflow/utilities
- Enter the following:
FdlBorgen -isample_folder/WebSphereMQWorkflow_Samples.fdl -
osample_folder/SampleItem.in -nSampleItem -pMQWF_Structure_ -r3.1.0
FdlBorgen -isample_folder/WebSphereMQWorkflow_Samples.fdl -
osample_folder/SampleItemOrder.in -nSampleItemOrder -pMQWF_Structure_
-r3.1.0
- Load the sample business objects into the repository
Start IBM WebSphere ICS and, using Business Object Designer, select
File"Open From File. Load the repository file named
Sample_MQWF_Order_Objects.in (This file is located in the
WBI_folder/connectors/WebSphereMQWorkflow/Samples
folder.) Confirm that the sample business objects have been
loaded.
- Load the sample collaboration template and collaboration
objects into the repository Using your WebSphere Business
Integration System Manager, select select File"Open From File. Load
the repository file named
sample_MQWF_Order_Collaborations.in (located in the
WBI_folder/connectors/WebSphereMQWorkflow/Samples
folder).
- Compile the collaboration template Using your WebSphere
Business Integration System Manager, right-click the folder labeled
Collaboration Templates and select Compile all from the drop down
list.
- Restart IBM WebSphere ICS Reboot InterChange Server to
ensure that all changes take effect. Use System Monitor to ensure
that all of the collaboration objects and connector controllers are
in a green state.
