[jboss-user] [jBPM] - Bug: jPBM 4.4: JbpmException thrown by ActivityExecution.getActivity()

HuiSheng Xu do-not-reply at jboss.com
Thu Jul 8 10:24:48 EDT 2010


HuiSheng Xu [http://community.jboss.org/people/rebody] replied to the discussion

"Bug: jPBM 4.4: JbpmException thrown by ActivityExecution.getActivity()"

To view the discussion, visit: http://community.jboss.org/message/551699#551699

--------------------------------------------------------------
Hi Joe,

Yes, you could get ActivityExecution by using class casting.  But it is not the normal way to get it.  We could also get ExecutionImpl by class casting.  But it doesn't mean that we could use every methods in ExecutionImpl directly,  without opening envionment.

The different between Execution interface and ActivityExecution interface is that you could use any methods on Execution,  even if we didn't open an environment for it.  But ActivityExecution didn't has this guarantee.  Why jbpm 4 didn't export ActivityExecution in api service interface? Because there were some methods needing Environment supporting.

At last,  If you want to some features about getting activity information from api service interface,  you could post requirement in this forum,  or open an issue on JIRA.  Thank you very much.

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/551699#551699]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100708/14e9ce45/attachment.html 


More information about the jboss-user mailing list