[jboss-user] [jBPM] New message: "Re: How to differentiate State and Task"
Maciej Swiderski
do-not-reply at jboss.com
Tue Mar 16 05:26:50 EDT 2010
User development,
A new message was posted in the thread "How to differentiate State and Task":
http://community.jboss.org/message/532198#532198
Author : Maciej Swiderski
Profile : http://community.jboss.org/people/swiderski.maciej
Message:
--------------------------------------------------------------
Hi,
I am not sure that there is a public API for this or anything planned (perhaps you could browse jira) but it can be done by casting to internal types.
Execution executionInA = processInstance.findActiveExecutionIn("review");
String type = ((ExecutionImpl)executionInA).getActivity().getType();
This returns the type coresponding to xml tag.
It is not the best way (by using internal classes) but it can do what you need and perhaps such functionality is on its way if not, maybe create a new request for it would be good idea.
HTH
Maciej
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/532198#532198
More information about the jboss-user
mailing list