SWF-Editor: Handle multiple setContent calls context #1657
Labels
area:sonataflow
Related to CNCF Serverless Workflow Spec and SonataFlow
area:tools
Issues affecting Apache KIE tooling projects
Summary
The goal of this task is to handle workflow's context in the scenarios of loading a workflow for the very first time, reload the workflow, and load a new workflow. It is necessary to keep track of certain information about the workflow in between reloads.
Description
When the setContent is called to set the workflow content to be parsed and then rendered, it is necessary to assertain the following scenarios:
In the first scenario consider a fresh start for the editor session. If there is a different worflow loaded previously the proper clean ups shall be done berore loading a new workflow.
In the second scenario where new content to the same workflow is being set through setContent the following contexts shall be handled:
Note: Keep in mind that selection and highlight features will depend on this feature once we need to set the same selected node and / or highlited nodes again if the same workflow is reloaded.
Testing
Run the component and reload a new content for the same worlfow from the storybook change the zoom and move the scroll bars. Zoom ratio and bars position shall be preserved in between same workflow reloads.
Dependencies
The text was updated successfully, but these errors were encountered: