This content has been marked as final.
Show 2 replies
-
1. Re: Marking states as different types
alkero Aug 29, 2005 4:39 AM (in response to weliwarmer)May be you can try something like this:
<sate name="Page 1"> <event type="node-enter"> <action name="setType" class="org.test.setType"> <type>page.jsp</type> </action> </event> <transition name="tr1" to="Page 2"/> </state> <sate name="Page 2"> <event type="node-enter"> <action name="setType" class="org.test.setType"> <type>anotherpage.jsp</type> </action> </event> <transition name="tr1" to="end"/> </state>
And set the variable in the org.test.setType class
It's not exactly what you want, but this way you can parse the process definition and retrieve the associated type.
May be it's possible to do with a script instead of an action ?
Regards,
David -
2. Re: Marking states as different types
weliwarmer Aug 30, 2005 6:04 AM (in response to weliwarmer)Thanks Alkero, I have been using scripts in node-enter but changed to an ActionHandler class because it tidy's up the xml alittle.
This works good enough for now.
Thanks again.
Tim