Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SWF-Editor: Enable auto-layout capabilities on load / refresh #1644

Open
Tracked by #1127
handreyrc opened this issue Nov 27, 2024 · 0 comments
Open
Tracked by #1127

SWF-Editor: Enable auto-layout capabilities on load / refresh #1644

handreyrc opened this issue Nov 27, 2024 · 0 comments
Assignees
Labels
area:sonataflow Related to CNCF Serverless Workflow Spec and SonataFlow area:tools Issues affecting Apache KIE tooling projects

Comments

@handreyrc
Copy link

handreyrc commented Nov 27, 2024

Summary

The goal of this task is to add auto-layout capabilities to the diagram.
The auto-layout must be automatically applied on every "setContent" (load / refresh) of the workflow.
Note: ELKjs is being used by DMN so consider using the same auto-layout engine.

Description

  • Setup auto-layout engine to react flow rendering mechanism
  • Apply auto-layout on setContent
  • The workflow layout must be top-down with orthogonal lines
  • Apply calculated node positions to all nodes
  • Apply calculated vertexes (CPs) for each edge to avoid lines crossing and overlaping (ELKjs provides vertexes coordinates)
  • Update the static model so it is possible to render a workflow good enough to verify the auto-layout results

Testing

  • By running the component it should be possible to verify that the layout of the nodes is top-down with ortogonal lines connecting them
  • It should be no overlaps or line cossings
@handreyrc handreyrc added area:tools Issues affecting Apache KIE tooling projects area:sonataflow Related to CNCF Serverless Workflow Spec and SonataFlow labels Nov 27, 2024
@handreyrc handreyrc self-assigned this Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:sonataflow Related to CNCF Serverless Workflow Spec and SonataFlow area:tools Issues affecting Apache KIE tooling projects
Projects
None yet
Development

No branches or pull requests

1 participant