elsa-workflows / elsa-core

A .NET workflows library
https://v3.elsaworkflows.io/
MIT License
6.06k stars 1.1k forks source link

[ENH]There is an issue with the IF activity in Elsa 3.1.3 designer #5683

Open shxylgithub opened 1 week ago

shxylgithub commented 1 week ago

Hello, teacher

In Elsa 3.1.3 designer, if an IF activity displays two buttons in the activity display, Then and Else do not work. If you click the "Then" or "Else" button, it is not possible to logically drag and drop a new activity into the sub flowchart? Is it not possible to visualize IF activities in Elsa 3.1.3 designer? If

glime-ai[bot] commented 1 week ago

Based on the context provided, it appears that you are experiencing an issue with the IF activity in the Elsa 3.1.3 designer where the Then and Else branches are not functioning as expected. This could be due to a known limitation or a bug in the Elsa Workflow designer.

As of the information provided, the Elsa Workflow designer has some known limitations, such as the designer not being fully embeddable in other applications and certain activities not being fully tested. However, there is no specific mention of issues with the IF activity in the provided context.

If you are unable to drag and drop new activities into the Then or Else branches of an IF activity, this might be a bug or a missing feature in the current version of the designer. The Elsa GitHub issues and discussions do not provide a direct answer to this problem, but similar issues have been reported, indicating that the designer may not fully support certain activities or workflows.

To resolve this issue, you can try the following steps:

  1. Check the Elsa GitHub repository for any reported issues or updates related to the IF activity in the designer.
  2. Reach out to the Elsa community or support channels for assistance. They may provide workarounds or information on when a fix will be available.
  3. Consider defining your workflows programmatically if the designer does not support the required functionality.

Keep in mind that Elsa is an evolving project, and certain features may be added or improved in future releases. It's important to stay updated with the latest documentation and release notes for any changes that may address your issue.

If you need further assistance, please provide additional details about the steps you are taking and any error messages you are encountering, so that a more specific solution can be provided.

This comment was generated by Glime.

sfmskywalker commented 3 days ago

Drag & drop of activities into the Then and Else ports of the If activity is unfortunately not currently supported by the designer. You can cut & paste activities into it, but when using the designer, it will always create a Flowchart activity into Then and Else, into which you would then paste your WriteLine activities, for example.

I would agree that it would be nice if we could drag & drop activities into the embedded ports, maybe we'll spend some time on this at some point.