[jboss-user] [JBoss jBPM] - number of swimlanes retrieved by taskMgmntInstance.getSwimla
Marc321a
do-not-reply at jboss.com
Thu Dec 27 09:45:55 EST 2007
Hi all,
Does anybody know how it comes that the number of swimlanes reported by TaskMgmtInstance is not constant, and how to get swimlanes when they are not reported by TaskMgmtInstance? After adding an Action with the following code to a processdefinition:
| ProcessInstance pi = executionContext.getProcessInstance();
| if (pi != null) {
| TaskMgmtInstance taskMgmtInstance = pi.getTaskMgmtInstance();
| if (taskMgmtInstance != null) {
| Map swimlanes = taskMgmtInstance.getSwimlaneInstances();
| if (swimlanes != null) {
| int nSwimlanes = swimlanes.size();
| log.info("ProcessInstance contains " + nSwimlanes + " swimlanes.");
| for (Iterator iterator = swimlanes.values().iterator(); iterator.hasNext();) {
| SwimlaneInstance swimlane = (SwimlaneInstance) iterator.next();
| log.info("Swimlane: " + swimlane.getName());
| }
| } else {
| log.info("Swimlane instances is null");
| }
| } else {
| log.info("TaskManagementInstance is null.");
| }
| } else {
| log.info("ProcessInstance is null.");
| }
|
The number of swimlanes varied and getSwimlaneInstances() returned null at some point, logging details:
| 2007-12-27 15:35:13,812 INFO [com.syfact.workflow.jbpm.handler.LoggingActionHandler] Swimlane instances is null
| ...
| 2007-12-27 15:35:45,265 INFO [com.syfact.workflow.jbpm.handler.LoggingActionHandler] ProcessInstance contains 1 swimlanes.
| ...
| 2007-12-27 15:35:45,265 INFO [com.syfact.workflow.jbpm.handler.LoggingActionHandler] ProcessInstance contains 2 swimlanes.
|
Please say so if you need more information. We would like to call setActorId() on a swimlane but can't retrieve it now.
thanks for the help,
Marc
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115713#4115713
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115713
More information about the jboss-user
mailing list