James,
This is one of the things not supported yet by jbpm.
JSF has options to selectivly show things or not, but you've got to get the information from somewhere else.
Since we do not use the jbpm default webapp (we use a slightly customized version PER application) we can easily just show the one process the user is allowed to start if he is in the right application role.
So currently yes, on the webapp side
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960742#3960742
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960742
How are you deploying the definition? Are you retreiving the process definition from the".par" file?
Here is what you can do:
ZipInputStream zipStream = new ZipInputStream(new FileInputStream(new File(<location of par file>)));
| ProcessDefinition processDefinition = ProcessDefinition.parseParZipInputStream(zipStream);
| jbpmContext.deployProcessDefinition(processDefinition);
|
The default jbpm web app already has that functionality (look at the "monitoring" menu of web app).
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960740#3960740
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960740