Skip to main content

Publishing

The Publish Dialog in the application provides a user interface for managing and publishing different versions of a workflow. It allows users to handle version control, publish new updates, and restore previous versions of a workflow.

Features

Version Management

Users can view, select, and restore versions of the workflow stored in the system. Each version entry displays the creation date and version identifier, facilitating easy tracking of changes and updates.

  • Select Version: By clicking on a version entry, users can view more details or set a version as the current selection for further actions.
  • Restore Version: Allows users to revert the workflow draft to a previous state. The restoration process is safeguarded by a confirmation step to prevent accidental changes.

Publishing Workflow

From the dialog, users can publish the current state of the workflow, making it the latest active version.

  • Publish Button: Triggers the process of saving the current draft and updating the flow to be the active version.

Integration

Code

Interaction with the workflow is performed via HTTP POST requests, where users can initiate a session or send inputs to a specific workflow version:

curl -X POST "https://api.infinizeflow.com/sessions" \
-H "Content-Type: application/json" \
-d '{"flowId": "flow_id", "versionId": "version_id", "sessionId":"session_id", "sessionKey":"session_key", "input": "user_input"}'

This command sends data to the API, initiating a session or continuing an interaction based on the provided session details and input. The system then returns messages or other outputs as specified by the workflow's logic.

The Publish Dialog simplifies integration by providing a ready-to-use code snippet. This feature allows users to quickly generate a curl command for interacting with the workflow via API, facilitating easy and immediate integration with external systems.