Author |
Message
|
MQSerious |
Posted: Wed Apr 21, 2004 1:51 pm Post subject: [SOLVED]Synchronizing workitems across a web service call |
|
|
Acolyte
Joined: 29 Mar 2004 Posts: 68 Location: At Large
|
I am using a variation of Jmac's ProcessStarter UPES code to instantiate a process. The first activity(A) in my process is a web service call to application WS. I need this WS app to signal back to me that it's done with the specific workitem at which point additional work will be done then activity A is considered done. Signalling is not a problem.
My dilemma is keeping track of workitems serviced by the web service. I considered passing the item's OID to the web service and have the web service pass back the OID when it's done so that I may query MQWF for the particular workitem (I am saving the OID in the item description for easy retrieval) and proceed to complete the activity. Is this efficient? Anyone have a better way to handle this requirement?
Thx.
Last edited by MQSerious on Thu Apr 22, 2004 7:25 am; edited 1 time in total |
|
Back to top |
|
 |
jmac |
Posted: Wed Apr 21, 2004 5:10 pm Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
I'm not 100% certain I understand what you are doing... But your method seems to be the best way to accomplish this. Using OID to retrieve any object is the most efficient method possible.
GOOD LUCK _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
manoj |
Posted: Wed Apr 21, 2004 7:14 pm Post subject: |
|
|
 Master
Joined: 30 Jan 2002 Posts: 237 Location: Virgina
|
I donno about Jmac 's code..but if you are calling create process API then another way to do this is using a External Context (Process context). This is a useful feature when you are interested in getting a list of a processes having a common feature, say you are interested in all the processes for same "Applicant ID"...ofcource this is useful at process instance level only and not at workitem level _________________ -manoj |
|
Back to top |
|
 |
Ratan |
Posted: Thu Apr 22, 2004 6:49 am Post subject: |
|
|
 Grand Master
Joined: 18 Jul 2002 Posts: 1245
|
Is your Activity A manual or Automatic? Is the owner of the workitem going to invoke the Web Service call. If so, your solution is right. If it is an Automatic Activity, your UPES should make the Web Service call. For Automatic, you would not have any workitems. _________________ -Ratan |
|
Back to top |
|
 |
MQSerious |
Posted: Thu Apr 22, 2004 7:23 am Post subject: |
|
|
Acolyte
Joined: 29 Mar 2004 Posts: 68 Location: At Large
|
Ratan, indeed it is a manual activity. Thanks Manoj, Ratan, and Jmac for your input. Problem solved. _________________ Regards,
MQSerious. |
|
Back to top |
|
 |
|