Author |
Message
|
vennela |
Posted: Sat Oct 07, 2006 1:08 pm Post subject: Repo:Java code to start a Process Template in Process Server |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
I have posted a small java program on how to start a process template deployed in WebSphere Process Server. I have attached a small document with screen shots on "How to" run the program. I know the document is not very explanatory but still it should be usable.
Please post any comments here. Also let me know if you like it and would like to have any other samples regarding process server.
Thanks |
|
Back to top |
|
 |
jmac |
Posted: Sun Oct 08, 2006 7:10 pm Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
Vennela:
My approach is a little different, I have not used call to run any instance, I have always used initiate(). However, I recently ran into cases where your process starts with a Pick and therefore the initiate() doesn't cut it. The basic structure of my process start for WPS looks like this
1) Access BFM object
2) Query for proper template
3) Issue the getStartActivities() for the selected template if only 1 skip to step 5.
4) Determine the proper operation to use
5) Access the input message for the appropriate operation
6) Build the input message
7) Issue initiate() (when only a single operation exists for the template) or the start() (when there are multiple operations for the template
I am not sure what the exact implications are of call vs intiate. Do you know? I don't have time to do the research at the moment.
Regards
John _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
JLRowe |
Posted: Tue Oct 10, 2006 8:04 am Post subject: |
|
|
 Yatiri
Joined: 25 May 2002 Posts: 664 Location: South East London
|
I think call() waits for the process to complete and returns the output message, initiate() just kicks off the process and returns immediately. |
|
Back to top |
|
 |
MaheshPN |
Posted: Tue Oct 10, 2006 10:53 am Post subject: |
|
|
 Master
Joined: 21 May 2003 Posts: 245 Location: Charlotte, NC
|
If I understood correctly,
Call() can be used for Synchronous Process(Microflow) and Initiate() for long running process.
Thanks,
-Mahesh |
|
Back to top |
|
 |
jmac |
Posted: Tue Oct 10, 2006 1:41 pm Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
JLRowe/Mahesh:
Thanks... kind of what I figured. _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
|