MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
P0rridge
Post subject: Moving Webflow diagrams problem  PostPosted: Dec 05, 2011 - 08:58 PM
Registered Member
Registered Member


Joined: Jun 20, 2010
Posts: 143

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.
 
 View user's profile Send private message  
Reply with quote Back to top
cconway
Post subject:   PostPosted: Dec 06, 2011 - 04:17 PM



Joined: Apr 04, 2011
Posts: 196

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,

_________________
Cindy
MyEclipse for Spring Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
P0rridge
Post subject: Thanks  PostPosted: Dec 07, 2011 - 09:14 AM
Registered Member
Registered Member


Joined: Jun 20, 2010
Posts: 143

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.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits