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]

_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to