I found a solution!
I had a problem with getting the swimlane instance of the task instance.. it
always gave me null. I realized that it's because it hasn't been initialized
yet.. Here is what i did to initialize all the swimlane instances, and it
worked!
ProcessInstance pi = executionContext.getProcessInstance();
| ProcessDefinition pd = pi.getProcessDefinition();
| Map swimlanes = pd.getTaskMgmtDefinition().getSwimlanes();
| Iterator itr = swimlanes.keySet().iterator();
| while(itr.hasNext()) {
| Swimlane swimlane = (Swimlane)swimlanes.get(itr.next());
| SwimlaneInstance swi =
pi.getTaskMgmtInstance().getInitializedSwimlaneInstance(new
ExecutionContext(pi.getRootToken()), swimlane);
| }
I got it from a post
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=70160
So now when i do this: SwimlaneInstance swimlaneInstance =
executionContext.getTaskMgmtInstance().getSwimlaneInstance("demandeur1"); i
don't get null anymore..
But the weird thing is that when i do this SwimlaneInstance swimlaneInstance =
executionContext.getTaskInstance().getSwimlaneInstance(); i get Null!!
I guess it's because the action is in the "task-create" event.. so the task
instance is not created yet maybe..
Please tell me if i'm wrong...
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3925550#3925550
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3925550
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user