com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_link3' is unknown.

Simulate Events for a Persisted Event Stream

Event simulation involves creating events in a predefined event stream by assigning values to the attributes in that event stream.

This tutorial demonstrates how to send a series of single events to a persisted event stream using the Event Stream Simulator tool.

Click the following topics for a description of the concepts that you need to understand when simulating single events.

Before you try this tutorial, do the following.

  1. Create the BookStore event stream following the instructions in the Create Event Stream tutorial.
  2. Persist the BookStore event stream following the instructions in the Persist Event Stream tutorial.

Follow the steps below to publish 15 single events in a persisted event stream.

  1. In the WSO2 DAS Management Console, click on the Tools tab. Then click Event Simulator to open the Event Stream Simulator page.
     
  2. In the Event Stream Name field, select the XXX event stream. The attributes in the stream are displayed as demonstrated below.
     
  3. Simulate 10 events as given in the table below. Click Send to send each event.

    Transaction_IDTitleAuthorPriceQuantityDateDiscountValue_timestamp
    BSP0000001

    The Invisible Man: A Grotesque Romance

    Arthur,C,Clarke6.66122016-11-03079.921478160425000
    BSP0000002Childhood's EndArthur,C,Clarke5.50122016-10-060661475741225000
    BSP0000003Oliver TwistCharles,Dickens6.96202016-09-010139.201472717225000
    BSP0000004Emma

    Jane,Austen

    6.73202017-01-050134.601483603625000
    BSP0000005

    Memoirs of a Geisha

    Arthur,Golden9.28102017-02-02092.801486022825000
    BSP0000006The Origin of SpeciesCharles,Darwin6.25202016-10-3101251477901225000
    BSP0000007The Adventures of Sherlock HolmesArthur,Conan,Doyle6.00152017-01-300.25901485763627000
    BSP0000008A Study in ScarletArthur,Conan,Doyle5.00152016-11-030.25751478160426000
    BSP0000009

    Sherlock Holmes: The Complete Novels and Stories

    Arthur,Conan,Doyle9.50302016-10-060.252851475741226000
    BSP0000010Gone With the WindMargaret,Mitchell6.83202016-09-010136.601472717226000
    BSP0000011Mary Called MagdaleneMargaret,George7.00102016-10-020.50701506931625000
    BSP0000012Memoirs of CleopatraMargaret,George7.00102016-08-290.50701503994025000
    BSP0000013Elizabeth IMargaret,George7.00102017-01-300.50701485763625000
    BSP0000014

    Sinatra: The Life

    Anthony,Summers10.0052016-10-310501477901227000
    BSP00000151984George,Orwell6.99202017-01-020139.801483344425000

    The comma (,) separated values entered for the Author attribute define a hierarchy of categories when searching by the Author facet.

    e.g., In the above table, the following three authors have the same first name.

    • Arthur,Conan,Doyle
    • Arthur,C,Clarke
    • Arthur,Golden

    Here, Arthur is considered a main category of the Author facet. Conan, C, and Doyle are subcategories of the Arthur category. Doyle is a subcategory of the Conan subcategory.

    This is further demonstrated in the Search for Records Via the Management Console tutorial.

com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links2' is unknown.