Running the Example Process

Follow these steps to run the correlations example project.

  1. Import the CorrelationsExample project.

    The project is located at <ORABPM_HOME>/samples/advanced/correlations/CorrelationsExample.exp.

  2. Start the project.

    See Running a Project in Studio.

  3. Launch WorkSpace and login with user test.
  4. Click on Generate Invoice application link.
  5. Enter any integer number in the Invoice Number field and click OK.

    This creates a new process instance, using the invoice number as a correlation value to identify it. You should see the instance in your Work Items list.

    Important: Every time you generate a new Invoice instance, you must specify a different number. Otherwise, you get an error message because correlation values must be unique.
  6. Click on Display Invoice to confirm the information of your new instance.

    Now the process instance is sitting on the Wait for Release activity of The Accept Invoice Process.

  7. Send a notification to the instance, identifying it by its invoice number.
    You have two ways of notifying the process instance:
    • Click on the Release Invoice application link, enter the invoice number of the instance you want to notify and click OK.
    • Use the accompanying Java program Release Invoice. This program simulates an external system sending a notification to your BPM process. See Running Correlations Java program for details.

    The process instance you notified should now appear back in your list of Work Items. The instance is now sitting on the Invoice Ready activity of The Accept Invoice Process.

  8. You may now click on Invoice Ready to confirm the right instance was notified.

    If you used the Release Invoice activity to notify the instance on the previous step, you should see a message saying the instance was Released. If you used the external Java program, you should see a saying the instance was Approved.

Related concepts
The Accept Invoice Process