[JBoss-user] [JBoss jBPM] - Re: SubProcessInstance(s) returns null

2006-02-23 Thread send2shriram
Hi Ian,

Thanks for your reply.

I got it working now. Yes, The subProcessInstance IDs  are stored in DB.

Actually my Process has two subProcesses. The call 

processInstance.getRootToken.getActiveChildren().
gives me a map of tokens in the mainProcess. From the token in map,
i say  token.SubProcessInstance()- which returned me the subProcessInstances.

I paste here the code , so that it might be useful for others, who needs 
subProcessInstances.

Token rootToken = process_Instance.getRootToken();
   HashMap collMap  = (HashMap)rootToken.getActiveChildren();
   Collection colln = collMap.values();
   Iterator iter = colln.iterator();
   while (iter.hasNext()) {
  Token token   = (Token) iter.next();
 ProcessInstance subPI = token.getSubProcessInstance();
System.out.println(  SUBPI ID  :  + subPI.getId());
}


 This will return all the child subProcessInstances of the parent 
ProcessInstance.

hope it helps !!!

tHANKS
Shriram

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3925773#3925773

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3925773


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: SubProcessInstance(s) returns null

2006-02-22 Thread send2shriram
Could anybody say is there other way to get the subProcessInstances
from mainProcessInstance.

As this stops completely from using the multiple subProcess in the 
processdefintion file, as subProcessInstances returns null.

Thanks
Shriram




View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3925583#3925583

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3925583


---
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=lnkkid=103432bid=230486dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: SubProcessInstance(s) returns null

2006-02-22 Thread iterrell
Shriram,

I am successfully using both multiple subprocesses AND 
.getSubProcessInstance(), so I doubt that's the issue.

Are the SubProcessInstanceIDs getting set in the database?  Look at the values 
manually to tell.  If they are null, make sure that you are saving the process 
instances you create and you are correctly closing the jbpmContext.

Please post your process definition and java code if you need more help and 
I'll take a look at it.

Ian

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3925651#3925651

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3925651


---
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=lnkkid=103432bid=230486dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: SubProcessInstance(s) returns null

2006-02-20 Thread [EMAIL PROTECTED]
this is a known bug.  it requires a mapping and db schema change to fix this.  
so it's not solved in 3.0.2.

but it is solved in 3.1

regards, tom.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3925129#3925129

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3925129


---
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=lnkkid=103432bid=230486dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: SubProcessInstance(s) returns null

2006-02-20 Thread send2shriram
Hi Tom,

Thanks for your reply.
Iam  currently working in JBPM 3.1 release. But the method 

processInstance.getRootToken().getSubProcessInstance();

still returns null, when i have multiple sub-processes in process defintion.

Is the bug still open? Is there any other method available for getting the 
subProcessInstances?


Thanks in Advance
Shriram

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3925201#3925201

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3925201


---
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=lnkkid=103432bid=230486dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user