I now have the problem of trying to write the filtering code, so users do not 
see the start of processes they are not supposed to be starting.. The problem 
is that is I get the actor expressions, or use a swimlane and get them via 
that, but they are all null. Obviously this is all from definitions and not 
from instances since a process that hasn't started does not have instances.

I have modified the following inside the HomeBean:


  | public List getLatestProcessDefinitions() {
  |   List allProcesses = graphSession.findLatestProcessDefinitions();
  | 
  |   for (int i=0; i<allProcesses.size(); i++) {
  |     ProcessDefinition processDefinition = (ProcessDefinition) 
allProcesses.get(i);
  | 
  |     TaskMgmtDefinition taskMgmtDefinition = 
processDefinition.getTaskMgmtDefinition();
  |     log.info("Name = " + taskMgmtDefinition.getStartTask().getName());
  |     log.info("Actor id expression = " + 
taskMgmtDefinition.getStartTask().getActorIdExpression());
  |     log.info("Pooled actors expression = " + 
taskMgmtDefinition.getStartTask().getPooledActorsExpression());
  | 
  |     if (taskMgmtDefinition.getStartTask().getSwimlane() != null) {
  |       log.info(taskMgmtDefinition.getStartTask().getSwimlane().getName());
  |       
log.info(taskMgmtDefinition.getStartTask().getSwimlane().getActorIdExpression());
  |       
log.info(taskMgmtDefinition.getStartTask().getSwimlane().getPooledActorsExpression());
  |     } else {
  |       log.info("swimlane is null");
  |     }
  |   }
  |   return allProcesses;
  | }

This prints out the name of the start task and the swimlane fine, but all the 
actor expressions are null.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3943522#3943522

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3943522


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to