< Previous | Next >

Run the sample

You can run the sample from the provided artifacts if you did not build the sample from the tutorial. This section will guide you through the steps to use the provided solutions and then to run the sample.

  1. If you are using the sample from this Web site, you must import the Clips and Tacks project interchange file. If you are accessing the sample from within WebSphere Integration Developer, you can skip this step. To import the Clips and Tacks project interchange file, complete the following steps:
    1. Start WebSphere® Integration Developer Version 6.1 and create a new workspace name for this sample, for example C:\Documents and Settings\Administrator\IBM\wid6.1\ClipsAndTacks. Do not select Use this as the default and do not ask again check box because it is easier to come back to this dialog box if it is not selected. Click OK.
    2. Close the Welcome page.
    3. Import ClipsAndTacksF1Completed.zip (see Download the sample ) into WebSphere Integration Developer by selecting File > Import.
    4. Select Other > Project Interchange and then click Next.

      Import project interchange

    5. Click Browse and select ClipsAndTacksF1Completed.zip.
    6. Click Select All. The generated files are not included in the downloaded ClipsAndTacksF1Completed.zip file to save downloading time. Instructions on how to generate them are also in this section. Click Finish

      Import Project Interchange Contents

  2. Generate the process’s User Interface.
    1. When Building Workspace is completed from the import, right-click on ClipsAndTacksF1 and select Generate User Interfaces.
    2. In the Client Generator Selection window, change Generator type to IBM Lotus Forms client and click Next.
    3. For the name of the dynamic Web project, enter ClipsAndTacksUI. For the style, select IBM Style. Click Finish.

      User interface wizard for human tasks

    4. A client Generation Completed message appears. Click OK.
  3. Generate the monitor model J2EE projects.
    1. Switch to the Business Monitoring perspective.
    2. Expand clips > Monitor Models.
    3. Right-click clipsbpm.mm and select Generate Monitor J2EE Projects.
    4. Click Finish.

      Generating the J2EE project

    5. Click Finish again.

      Generate Monitor J2EE Projects Dialog

  4. Deploy the executable projects to the server.
    1. Select the Servers tab.
    2. If the WebSphere Business Monitor Server v6.1 on WebSphere Process Server is not started, then start it by right-clicking on it and selecting Start. Then right-click and select Add and Remove Projects.
    3. Click Add All.

      Add and remove projects

  5. To exercise the model, complete the following steps:
    1. Open a browser page and type http://localhost:9080/ClipsAndTacksUI. Depending on the number of server profiles on your system, your port number might be different. To determine your port number, open the SystemOut.log from C:\Program Files\IBM\WID61\pf\WBMonSrv_wps\logs\server1 and search for default host. The port number next to the default host is the port number that you need to use.
    2. Enter admin as user ID and admin as the password and click Login. If you used a different user ID and password during the installation, then you need to use that user ID and password.

      Login to Business User Client

      The client interface appears as shown below.

      Business User Client

    3. Under Business Case, click New and then select OrderHandlingFuture1_InputCriterion. The Lotus® Form is displayed.
      • For this scenario, when you enter the data, the TotalPrice should be greater than $750.00 to force the process to flow to the Review task.
      • Do not enter text below the red text that reads Below this line is for Clips and Tacks office use only.
      • You can add a new row by clicking the + sign; similarly, you can delete a row by clicking the sign. You can order multiple items, but ensure there is only one item per row.
      • When you have completed the form, click Create to create a new instance of the process.

      Create Clips and Tacks instances

    4. Under My ToDo’s, click Open. The order is waiting for the ReviewOrder task to be approved as shown in the following image.

      My to do's open

    5. Click the waiting task and then under the form click Claim to work on the task.

      My To Do's claim

    6. At the bottom of the form, select the Order Status drop-down list and select APPROVED. To complete this human task, click Complete (located at the top left corner of the form).
      Note: Save does not complete the human task, but saves the task so that you can return to it. Click Complete so that the process will continue to the next task.
    7. Click Refresh in the client (not the browser Refresh). Now the task is waiting for someone to claim and work on the ShipOrdertoCustomer human task.

      My to do's refresh

    8. Click the waiting task and then click on Claim to work on it.
    9. Enter a Packaging Slip number and click Complete to complete the business process.

      My to do's complete

      You have just processed one instance of the Clips and Tacks OrderHandling (Future1) business process. Because the total price of the order was more than $750.00 and the available credit was less than the total price, the order went to the ReviewOrder human task (either of the conditions would have sent it to review). The ReviewOrder human task approved the order and it went to the ShipOrdertoCustomer human task. The ShipOrdertoCustomer human task gave it a packaging slip number and sent the order to the customer.

  6. To create the dashboard, complete the following steps:
    1. In WebSphere Integration Developer, click Window > Web Browser. The default browser is 'Internal Web Browser', but you should not use this one since some standard functions that you may need are not provided. Select 'Default system Web browser' or any other listed browser other than the internal browser.
    2. In WebSphere Integration Developer, in the Servers view, right click on the server WebSphere Business Monitor Server v6.1 on WebSphere Process Server and select WebSphere Business Monitor Dashboard from the context menu.
    3. When prompted, enter admin for the user ID and enter admin for the password. You must log in with 'admin' so that you can view the alerts which were setup in Action Services to be viewed by this particular user ID. Also, in the toolkit environment, this is the user that is automatically defined on the secured server.

      Dashboard login

    4. Click on the Dashboards tab and then the Manage tab.
    5. Click Import.
    6. Click Browse and select dashboard.data from the unzipped downloaded file and click OK.

      Dashboard data import dialog

    7. Click MyDashboard. The dashboard opens.

      My dashboard instances

    8. Optional: To see more data on the dashboard, run more events as described in Run events to exercise the model from the Build It Yourself section.
< Previous | Next >