elsa-workflows / elsa-studio

A modular, extensible dashboard application framework
MIT License
179 stars 84 forks source link

Add "Start Workflow" Option to Workflow Definition List Context Menu #153

Open sfmskywalker opened 8 months ago

sfmskywalker commented 8 months ago

We need to be able to start workflows directly from the Workflow Definition List view. To facilitate this, the following enhancements are proposed:

This feature aims to improve the overall user experience by making workflow management more accessible and intuitive.

glime-ai[bot] commented 8 months ago

To implement the proposed feature of starting workflows directly from the Workflow Definition List view, you would need to consider the following steps:

  1. UI Changes: Update the user interface of the Workflow Definition List view to include a context menu with a "Start" option for each workflow definition.

  2. Workflow Initiation: Determine if the selected workflow requires initial input. If it does not, the workflow can be started immediately. If initial input is required, prompt the user to provide the necessary information.

  3. API Endpoint: Ensure there is an API endpoint available to start workflows. This endpoint should be capable of handling both workflows that require initial input and those that do not.

  4. Input Handling: For workflows that require initial input, implement a mechanism to collect and validate the input from the user before starting the workflow.

  5. Feedback Mechanism: Provide feedback to the user after initiating the workflow, such as a confirmation message or an error message if the workflow could not be started.

  6. Documentation and Testing: Update the documentation to reflect the new feature and thoroughly test the feature to ensure it works as expected.

Considering the context provided, Elsa Workflows supports starting workflows programmatically, using triggers, or through the REST API. You can use these capabilities to implement the "Start" feature in the Workflow Definition List view. You may need to extend the Elsa Studio front-end to include the new context menu option and possibly create a new API endpoint or utilize an existing one to handle the workflow initiation.

Please note that implementing this feature would require development work, including both front-end and back-end changes. If you are not familiar with the technical aspects of Elsa Workflows, you may need to consult with a developer or the Elsa community for assistance.