Skip to main content

Event Tools

Overview​

Event tools manage Logic Fabric event definitions and event handlers in Logic Assist. An event definition describes an event that can be raised in the system, while an event handler binds an event definition to a Logic Flow so that the flow runs when the event fires - either synchronously or asynchronously. These tools require the Logic Composer product.


search_event_definitions​

Searches Logic Fabric event definitions by name.

ParameterTypeRequiredDescription
eventNamestring✓The name of the event definition to search for.

Returns: Matching event definitions including name, title, description, and project.


list_event_definitions​

Lists Logic Fabric event definitions.

ParameterTypeRequiredDescription
projectIdGUIDThe ID of the project to filter event definitions by. Optional.
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.


get_event_definition_details​

Gets the details for a Logic Fabric event definition by event definition id.

ParameterTypeRequiredDescription
eventDefinitionIdGUID✓The ID of the event definition.
projectNamestring✓The 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 a preview URL for a Logic Fabric event definition.

ParameterTypeRequiredDescription
eventDefinitionIdGUID✓The ID of the event definition.
metadatastring✓The 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 Logic Fabric event definition and returns the event definition id.

ParameterTypeRequiredDescription
eventDefinitionNamestring✓The name of the event definition to create.
projectIdGUID✓The ID of the project to create the event definition in.
metadatastring✓The 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 Logic Fabric event definition metadata.

ParameterTypeRequiredDescription
eventDefinitionIdGUID✓The ID of the event definition to update.
metadatastring✓The 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. See Managed Solution Protection.

Best practice: Always call get_event_definition_details first to read the current metadata before updating, to avoid unintentionally overwriting parts of the definition you did not intend to change.


get_event_definition_handlers​

Gets Logic Fabric event definition handlers by event definition ID.

ParameterTypeRequiredDescription
eventDefinitionIdGUID✓The 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 Logic Fabric event handler and returns the event handler ID.

ParameterTypeRequiredDescription
eventHandlerNamestring✓The name of the event handler to create.
projectIdGUID✓The ID of the project to create the event handler in.
eventDefinitionIdGUID✓The ID of the event definition.
logicFlowIdGUID✓The ID of the logic flow.
metadatastring✓The metadata for the event handler in JSON format.
asyncbool✓Indicates whether the event handler runs asynchronously.
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. See Managed Solution Protection.


update_event_handler​

Updates a Logic Fabric event handler.

ParameterTypeRequiredDescription
eventHandlerIdGUID✓The ID of the event handler.
metadatastring✓The metadata for the event handler in JSON format.
asyncbool✓Indicates whether the event handler runs asynchronously.
titlestringThe title for the event handler. Optional.
descriptionstringThe description for the event handler. Optional.

Returns: Confirmation that the event handler was updated.

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

Best practice: Always call get_event_definition_handlers first to read the current handler metadata before updating, to avoid unintentionally overwriting parts of the definition you did not intend to change.