6 - Share events for discovery by others

Scenario: Sharing results of analysis and processing

The EMEA operations team wants to share their new topic of EMEA orders for use by other teams in their enterprise.

Before you begin

The instructions in this tutorial use the Tutorial environment, which includes a selection of topics each with a live stream of events, created to allow you to explore features in IBM Event Automation. Following the setup instructions to deploy the demo environment gives you a complete instance of IBM Event Automation that you can use to follow this tutorial for yourself.

Versions

This tutorial uses the following versions of Event Automation capabilities. Screenshots may differ from the current interface if you are using a newer version.

  • Event Streams 11.4.0
  • Event Endpoint Management 11.2.2
  • Event Processing 1.1.8

Instructions

Step 1 : Create a flow

This tutorial begins with the flow that is created in Triggering actions.

If you haven’t completed that tutorial yet, you should do it now.

Step 2 : Add the topic to the catalog

The next step is to provide the topic details to create an entry in the catalog.

  1. Go to the Event Streams page for the new ORDERS.EMEA topic created in the previous tutorial.

    screenshot

    If you need a reminder of how to access Event Streams, you can review Accessing the tutorial environment.

  2. Click Share for reuse.

    screenshot

  3. Click Next.

  4. Paste your access token from Event Endpoint Management cluster.

    screenshot

    You can generate access tokens from the profile page in Event Endpoint Management.

  5. Give the event source the name EMEA orders.

    screenshot

    Verify the sample message selected.

  6. Click Share for reuse.

Step 3 : Document the topic

The next step is to document the topic to describe the events that your processing flow is producing.

  1. In the Event Endpoint Management UI, go to the Manage topics page.

    screenshot

    If you need a reminder of how to access Event Endpoint Management, you can review Accessing the tutorial environment.

  2. Click the new EMEA orders topic.

    screenshot

  3. Click Edit information to provide documentation for the topic.

    screenshot

  4. Add a description of the events generated by your processing flow.

    screenshot

    Suggested description:

    “Events from the EMEA region recorded by the order management system”

  5. Click Event information in the navigation, and verify that the message format is set to JSON.

    screenshot

  6. Click Save.

Step 4 : Publish the topic

The final step is to publish the new topic in the catalog so that it can be discovered by other teams in your enterprise.

Creating two options for the topic will allow teams to consume the topic in different ways: one option with full, unredacted access to all properties in the events that will require your approval, and a second option which can be accessed without approval, but which redacts the customer name from events.

  1. Click the Create option button in the Options tab.

    screenshot

  2. Create a name for the first access option that you are creating.

    screenshot

    Calling the option “Full access (approval required)” is a good way to describe a topic being published without redactions.

  3. Create a topic alias for the option.

    To distinguish it from the second option, ORDERS.EMEA.FULL is a reasonable alias.

  4. Click Next to proceed to the Controls page.

  5. Click the Add control button to define the control for this option.

    screenshot

  6. Select the Approval control and click Add control.

    screenshot

  7. As we are not adding any additional controls, click Save.

  8. Click Publish.

    screenshot

  9. Confirm the gateway group and click Publish.

    screenshot

  10. Click the Create option button again to start adding the second option.

  11. Create a name for the second access option that you are creating.

    screenshot

    Calling the option “Self service (redacted)” is a good way to describe a topic being published without any approval requirements.

  12. Create a topic alias for the option.

    To distinguish it from the first option, ORDERS.EMEA.REDACTED is a reasonable alias.

  13. Click Next to proceed to the Controls page.

  14. Click the Add control button to define the control for this option.

  15. Select the Redaction control and click Next.

    screenshot

  16. Specify $.customer as the property to redact, and enter redacted as the value to replace customer names with.

    screenshot

  17. Click on Add control.

  18. As we are not adding any additional controls, click Save.

    screenshot

  19. Click Publish.

    screenshot

  20. Confirm the gateway group and click Publish.

    screenshot

  21. Confirm that the topic is published by switching to the catalog.

    screenshot

  22. Confirm that your sample message and description are displayed in the topic details page.

    screenshot

Recap

You published the results of your event processing flow to a catalog.

The documentation you provided will enable other people in your enterprise to make use of the events your flow is producing, and the catalog will allow them to create their own credentials for using the topic. The options you created provide a good compromise between instant, self-service access for non-sensitive event properties, and controlled access to sensitive properties when needed.

Next step

You have completed the guided tutorial. You used all three capabilities in IBM Event Automation: creating topics in Event Streams, discovering and publishing topics in Event Endpoint Management, and processing events in Event Processing.

If you would like more ideas of things to try in Event Processing, we have more Tutorials for Event Processing, which are there to show you other things that you can do, and inspire you with ideas for your own projects.