-
1. Re: How to indentify a StartState node?
salaboy21 Jun 5, 2008 12:51 PM (in response to pojomonkey)You can get it by name???
<start-state name="Start"> <transition to="Login"></transition> </start-state>
or you do not wanna do this?? -
2. Re: How to indentify a StartState node?
kukeltje Jun 5, 2008 5:59 PM (in response to pojomonkey)look at the api... afaik, there is an 'isStartState()' or something
-
3. Re: How to indentify a StartState node?
pojomonkey Jun 6, 2008 4:44 AM (in response to pojomonkey)"kukeltje" wrote:
look at the api... afaik, there is an 'isStartState()' or something
I wish - looked for that first!
The only isXxxx() methods the node has are:isAsync() isAsyncExclusive() isSuperStateNode()
-
4. Re: How to indentify a StartState node?
pojomonkey Jun 6, 2008 5:02 AM (in response to pojomonkey)After a further look, I found that ProcessDefinition has the getStartState() method, and comparing each node against that I can identify the StartState node.
But I still think it's untidy that the Start State node is NOT instanceof StartState... -
5. Re: How to indentify a StartState node?
olivier_debels Jun 6, 2008 5:50 AM (in response to pojomonkey)Start node is a Start State.
However when using hibernate you probably got a proxy (because hibernate does lazy loading). This proxy is not aware of the original hierarchy and is not an instanceof Start state.
Also see:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=94900 -
6. Re: How to indentify a StartState node?
pojomonkey Jun 6, 2008 7:35 AM (in response to pojomonkey)OK, that might work (I'll try it) but, I am trying to keep my implementation unaware of the underlying persistence technology - so at the moment it doesn't reference the Hibernate jars.