- This topic has 2 replies, 2 voices, and was last updated 12 years, 9 months ago by ccpmurray.
-
AuthorPosts
-
ccpmurrayParticipantI have a webflow definition XML file that I need to reference as a sub flow. How do I find the id for this web flow? Can I change it?
I am asking this because I noticed that in the wizard for creating a new web flow definition XML I have the ability to create an ID. I noticed that after I entered the ID, the field loses the last character and I don’t seem to be able to find out how to fix it
cconwayMemberThe way you can try to figure this out is to create a separate project and scaffold WebFlow from the embedded Derby database, then take a look at the generated code. The scaffolded webflow app uses a sub-flow if you have related tables.
Scaffold using these steps:
1. Create new Web Project
2. Right-click and select MyEclipse > Scaffold Spring Crud Application.
3. Select Database Schema and press next.
4. Select MyEclipse Derby and press next.
5. Select the Classiccars schema and select the Product and Orderdetail tables, then press next.
6. Select Product as the parent
7. Enter a package name and press next.
8. select Spring Web Flow and press Finish.The Orderdetails table will be a subflow in the scaffolded app.
If you scaffold as suggested, you’ll find a subflow-state in the manageproducts.xml
<subflow-state id="manageorderdetailss" subflow="manageproductorderdetailss">
The id of the subflow is manageorderdetailss and it references the manageproductorderdetailss subflow. I believe that it is matching the filename of the subflow.
ccpmurrayParticipantI think I figured it out. A couple of things to note:
The filename of the flow XML is the id unless you set the ID from the wizard.
Using autocomplete helps if you set the ID, but still can’t find it.
If setting the ID in the wizard, it will lose the last character unless you end it with a space.
I think the 3 item is a bug while the other 2 items could use some documentation. I scoured both the text and video documentation and didn’t see anything and had to bang around until I found the solution. It would be nice to see it in the properties in the Web Flow diagram editor.[/list][/list]
-
AuthorPosts