Event Handler (event_handler)

Event Handler section of Care.Protocol defines a set of business rules associated with event/message for each Care Network Participants (Event handlers). Event Handlers provide the actual business logic for a functionality.

Field Name Value Type Description
id Number 1. Unique event handler id across the network.
2. Autogenerated
3. Required
Name String 1. Name of the event handler
2. Required
description String 1. Description of the event handler
2. Required
type String 1. Type of the event handler:
a. Wallet event handler
b. Node event handler
2. Required
status String 1. Event handler status:
a. Active
b. Inactive
2. Required
version Number 1. Version of the event handler.

(This version updates in an event of a change of the role metadata values.)
2. Required
event String 1. Event of this event handler. (It is an event reference number.)
2. Required.
type String 1. Type of the event handler:
a. wallet_event_handler
b. node_event_handler
2. Required
event_handler_definition_ref String 1. Reference of the event handler definition. (Separate definition JSON file) This definition consists of the event handler configurations based on the type of the event handler.
2. Required
3. JSON file – event_handler_definition.json