IBM BPM, V8.0.1, All platforms > Create processes in IBM Process Designer > Modeling processes > Modeling events > Use ad hoc events

Testing a sample ad hoc action

Use IBM Process Designer to test the sample ad hoc action.

Before you can test the sample ad hoc action, you must have a BPD that contains an ad hoc event and at least one task connected by sequence flow.

For example, you can modify the Hiring Sample BPD to contain an ad hoc action as described in Building a sample ad hoc action.


Procedure

  1. In IBM Process Designer, open the BPD which contains the ad hoc action that you want to test.

  2. Click the Run icon in the upper right corner of the BPD diagram.
  3. IBM Process Designer switches to the Inspector where you should see a new Submit requisition task in the task list.
  4. Open IBM Process Portal and log in as a member of one of the participant groups who receive and can complete the tasks generated by the activities in the BPD.

  5. Run the Submit requisition task displayed in your Open Tasks view in IBM Process Portal.
  6. Fill out the Job Requisition information, click Next, and then Submit on the Confirm Job Position form.

  7. When the next task for the process instance ( Approve/reject requisition) displays in your Open Tasks view in IBM Process Portal, click the instance name or task subject to open the details page.

    If the task does not display, reload the browser page.

  8. Click the Actions menu in the toolbar, and select the name of the ad hoc action. (The name of the action is the name that you assign the ad hoc event that initiates the user task in the BPD diagram in IBM Process Designer.

    If you are using the modified Hiring Sample, the name is Show Requisition Data. )

    IBM BPM generates a new task called Show Data, which is displayed in your Open Tasks view.

  9. Run the Show Data task. If you receive an information message about claiming the new task, click Claim Task. IBM BPM displays the data entered in step 5.

  10. Click OK.

    Now you can continue with normal processing by completing the next task in the process instance, Approve/reject requisition.

    You can invoke the ad hoc action again, after completion of the Approve/reject requisition task, to see whether the requisition has been approved.


What to do next

The ad hoc event and user task that you added to the BPD diagram enables you to view the requisition information at any time during running of the regular process.

Use ad hoc events


Related tasks:
Use IBM Process Portal
Restricting access to actions on BPDs and tasks