Skip to content

Workflow

1. Sign in

SignIn
Log in to configured

2. DragnDrop resources

DragnDropResources

  1. UI diagram/Graph.js dispatch DRAGnDROP
  2. on DRAGnDROP event -> handleDragnDrop
    1. Get : (getDiagramResources)
    2. addResourceToDiagram
      1. Update payload resources from toolbox to resource of AVIresource type
      2. armEngine.GetResourcesAndRelatedResources
      3. return [resources, relations]
    3. Set : (setDiagramResources setDiagramRelations)
  3. on setDiagramRelations event -> handleNewDiagramResources
    1. Get : (getDiagramResources getAzureSettings getDiagramRelations)
    2. all layout (AddDiagramResourceToDisplay)
    3. Set : (all (setDiagramNodes))
  4. UI Graph useEffect
    1. graph.current.elements().remove()
    2. graph.current.add(diagramDisplay[currentLayout].elements)
    3. layout.current = graph.current.makeLayout({configgraph})
    4. layout.current.run()

3. Switching layout

SwitchingLayout