Skip to main content

Event Tools

Overview

Event tools provide full lifecycle management for Flowon Event Definitions and Event Handlers. Event Definitions describe custom events that can be raised in the system, while Event Handlers bind a Logic Flow to respond when a specific event fires - either synchronously or asynchronously.


list_all_event_definitions

Lists All Flowon event definitions.

ParameterTypeRequiredDescription
pageNumberintThe page number for pagination. If not provided, defaults to the first page.
pagingCookiestringThe paging cookie for pagination. This should be provided if pageNumber is provided and there are more records to retrieve.

Returns: A paginated list of Event Definitions including name, title, description, and project.

See Pagination for details on iterating through large result sets.


list_event_definitions_by_project_name

Lists Flowon event definitions by project name.

ParameterTypeRequiredDescription
projectNamestringThe name of the project to filter event definitions by name.

Returns: A list of Event Definitions within the specified project.


list_event_definitions_by_project_id

Lists Flowon event definitions by project ID.

ParameterTypeRequiredDescription
projectIdGUIDThe ID of the project to filter event definitions by.

Returns: A list of Event Definitions within the specified project.


get_event_definition_details_by_name

Gets the details for a Flowon event definition by event definition name.

ParameterTypeRequiredDescription
eventDefinitionNamestringThe name of the event definition.
projectNamestringThe name of the project the event definition belongs to.

Returns: Full Event Definition details including name, metadata, title, description, and project.


get_event_definition_details_by_id

Gets the details for a Flowon event definition by event definition id.

ParameterTypeRequiredDescription
eventDefinitionIdGUIDThe ID of the event definition.
projectNamestringThe name of the project the event definition belongs to.

Returns: Full Event Definition details including name, metadata, title, description, and project.


get_event_definition_preview_url

Get preview url for Flowon event definition.

ParameterTypeRequiredDescription
eventDefinitionNamestringThe name of the event definition.
projectNamestringThe name of the project for the event definition.
metadatastringThe metadata for the event definition in JSON format.
titlestringThe title for the event definition. Optional.
descriptionstringThe description for the event definition. Optional.

Returns: A preview URL for the event definition record.


create_event_definition

Creates a new Flowon event definition and returns the event definition id.

ParameterTypeRequiredDescription
eventDefinitionNamestringThe name of the event definition to create.
projectNamestringThe name of the project to create the event definition in.
metadatastringThe metadata for the event definition in JSON format.
titlestringThe title for the event definition. Optional.
descriptionstringThe description for the event definition. Optional.

Returns: The GUID of the newly created Event Definition and its URL.

Restriction: Cannot be called on projects associated with a managed solution. See Managed Solution Protection.


update_event_definition_metadata

Updates Flowon event definition metadata.

ParameterTypeRequiredDescription
eventDefinitionNamestringThe name of the event definition to update.
projectNamestringThe name of the project the event definition belongs to.
metadatastringThe updated metadata for the event definition in JSON format.

Returns: Confirmation that the event definition metadata was updated.

Restriction: Cannot be called on projects associated with a managed solution.


get_event_definition_handlers

Gets Flowon event definition handlers by event definition ID.

ParameterTypeRequiredDescription
eventDefinitionIdGUIDThe ID of the event definition.

Returns: A list of Event Handlers for the specified event definition, including handler name, linked logic flow ID, project, async flag, title, and description.


create_event_handler

Creates a new Flowon event handler and returns the event handler ID.

ParameterTypeRequiredDescription
eventHandlerNamestringThe name of the event handler to create.
projectNamestringThe name of the project to create the event handler in.
eventDefinitionIdGUIDThe ID for the event definition.
logicFlowIdGUIDThe ID for the logic flow.
metadatastringThe metadata for the event handler in JSON format.
asyncboolIndicates whether the event handler runs async.
titlestringThe title for the event handler. Optional.
descriptionstringThe description for the event handler. Optional.

Returns: The GUID of the newly created Event Handler and its URL.

Restriction: Cannot be called on projects associated with a managed solution.


update_event_handler

Updates a Flowon event handler.

ParameterTypeRequiredDescription
eventHandlerIdGUIDThe ID for the event handler.
metadatastringThe metadata for the event handler in JSON format.
asyncboolIndicates whether the event handler runs async.
titlestringThe title for the event handler. Optional.
descriptionstringThe description for the event handler. Optional.

Returns: Confirmation that the event handler was updated.