[jboss-user] [jBPM Development] New message: "Re: No public metadata API?"

Ronald van Kuijk do-not-reply at jboss.com
Tue Feb 9 19:21:47 EST 2010


User development,

A new message was posted in the thread "No public metadata API?":

http://community.jboss.org/message/525257#525257

Author  : Ronald van Kuijk
Profile : http://community.jboss.org/people/kukeltje

Message:
--------------------------------------------------------------
Bill,
 
If you want access to the internal 'model', cast the Execution to OpenExecution:
 
>     OpenExecution e = (OpenExecution)processInstance.findActiveExecutionIn(activityName);
>     e.getActivity().getOutgoingTransitions();
> 
 
No need to use internal classes then. This still has to be added to the executionService. Getting transitions was only available for the taskService.
 
Regarding creating xml from the definition, that is not needed:
>  
>     List<Deployment> dep = repositoryService.createDeploymentQuery().page(0, 10).list();
>     
>     for (Deployment deployment : dep) {
>       
>       Set<String> resources = repositoryService.getResourceNames(deployment.getId());
>       for (String resource : resources) {
>         // e.g. test firstif the resourcename ends with .jpdl.xml
> 
>         InputStream is = repositoryService.getResourceAsStream(deployment.getId(),resource);
>         ...
>       }
>     }
>     
 
Cheers,
 
Ronald

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

To reply to this message visit the message page: http://community.jboss.org/message/525257#525257




More information about the jboss-user mailing list