on

public static EventFactory on(MessageEnvelope origin, Any producerId)

Creates a new event factory for producing events in response to the passed message.

Return

new event factory

Parameters

origin

the message in response to which events will be generated

producerId

the ID of the entity producing the events