elsa-workflows / elsa-core

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

Elsa 2 Dashboard - API enhancement on Designer WebComponent(s) to facilitate integration as a third party tools #903

Open jdevillard opened 3 years ago

jdevillard commented 3 years ago

As a developper, I would like to integrate the designer and other part of the Web Components inside my application.

A discussion around Embedding designer already exist #800 but this issue is more to provide and think about what api/properties could be useful to expose for allowing interaction with outside (React/Angular/Blazor, etc..)

Here is the props I see for the beginning about ElsaWorkflowDefinitionEditorScreen Component :

feel free to add some ideas to help on usecase possibility and allow dev to prioritize this as best

innuendonh commented 2 years ago

Hello, did you experiment with embedding the components in a web app? I am trying really hard to embed the designer in an angular app, by generating angular wrappers using stenciljs (https://stenciljs.com/docs/angular) but things are getting very complicated. Any suggestion would be great about this. Thank you!

jdevillard commented 2 years ago

This question comes up many time, so I've just publish a sample here :

https://github.com/jdevillard/ElsaWorkflowDashboard-Angular

and I think we'll try to add the wrapper in the packaging to get the integration easier.

innuendonh commented 2 years ago

Thank you @jdevillard ! I tried to follow your example and it worked! (I already followed a similar path, but i was missing several details).

What I found is: