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
-
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
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
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()
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