[JBoss-user] [JBoss jBPM] - Re: getting node Class type when getting process definition

2006-07-10 Thread gregoiredx
thank you, this work just fine. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956519#3956519 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956519 -

[JBoss-user] [JBoss jBPM] - Re: getting node Class type when getting process definition

2006-07-06 Thread msynovic
I asked the same question a week ago and didn't get a response. So as far as I know the API doesn't expose this information. The only way we've been able to get that information is to use Hibernate getClass method. Example | if( Hibernate.getClass(processInstance.getRootToken().getNode()).eq

[JBoss-user] [JBoss jBPM] - Re: getting node Class type when getting process definition

2006-07-06 Thread [EMAIL PROTECTED]
forget the last one... it's a wrong combination of constructs i used once to implement the equals method of proxyable objects. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955879#3955879 Reply to the post : http://www.jboss.com/index.html?module=bb&op=post

[JBoss-user] [JBoss jBPM] - Re: getting node Class type when getting process definition

2006-07-06 Thread [EMAIL PROTECTED]
just a thought: Class clazz = processInstance.getRootToken().getNode().getClass(); | if (clazz.getName().startsWith(clazz.getSuperClass().getName()) { | clazz = clazz.getSuperClass(); | } | another idea might be Object o = processInstance.getRootToken().getNode(); | if (o.getClass()

[JBoss-user] [JBoss jBPM] - Re: getting node Class type when getting process definition

2006-07-06 Thread gregoiredx
Sorry I did post before finishing... Hello, I'm testing jBPM and it really is a good product. But I'm stuck with a problem when trying to identify node "real" Class type when the process definition is retrieve from datablase. More practicallly : JbpmContext jbpmContext = JbpmConfiguration.getIns