facebook

Moving Webflow diagrams problem

  1. MyEclipse IDE
  2.  > 
  3. Spring Development
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #321566 Reply

    Greg Soulsby
    Member

    I mistakenly put my new webflow diagram into the WEB-INF\flows\myFlow directory, rather than \webflowdiragrams, where all the scafolded ones are.

    Tried the Move function on the webflowdiagram but the the diagram was “empty” when I opened it, and it was not up-datable. When I moved it back again all my work was fine. Not that important, but it would be good to clean this up.

    #321592 Reply

    cconway
    Member

    Hi P0rridge,

    I’m sorry you ran into this. I logged a bug for it. There is a .XML file with the same name as your flow and it looks like the path to that XML file isn’t being updated in the diagram metadata when the diagram is moved. There are two ways to correct it.

    Method 1) Manually update the diagram metadata to point to the xml file.
    1) Right-click on your “moved” diagram (the one in the new location that is missing the node content).
    2) Select Open With > Text Editor
    3) Search for all instances of <yourflowname>.xml. Each should be in a “href” attribute.
    4) For each instance, correct the path. The new path would look something like this: ../WebRoot/WEB-INF/flows/myFlow/MyWebFlow.xml

    Method 2) Re-generate the diagram in the new location. The downfall of this approach is that your node positions will be lost. The diagram should be reasonably organized, but it won’t be exactly the same as before.

    1) Right-click on the .xml file associated with your flow.
    2) Select MyEclipse > Initialize Web Flow Diagram.
    3) Select the filename and location you desire and finish the wizard.
    4) Delete the old (broken or incorrectly located) diagram.

    HTH,

    #321611 Reply

    Greg Soulsby
    Member

    Thanks Cindy, comprehensive reply as always.

    This also helps when re-scaffolding to a new project and copying the diagrams into the new project, which was also problem.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Moving Webflow diagrams problem

You must be logged in to post in the forum log in