|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
urgent, and thanks for your help! |
« View previous topic :: View next topic » |
Author |
Message
|
neweric |
Posted: Mon Feb 27, 2006 7:54 am Post subject: urgent, and thanks for your help! |
|
|
Newbie
Joined: 27 Feb 2006 Posts: 8
|
hi everyone,
I am a beginner, I want to get correl id by workflow api,
my code is as follows,
ControlObject controller = wfLogon(wfProps, wfPropertyNamePrefix);
ExecutionService es = controller.getExecutionService();
// Query a set of processinstances (30 at maximum), sort them by name
ProcessInstance[] procInstances =
es.queryProcessInstances("NAME='F2_TelnActivating-200602272982427'", "NAME DESC", max_process_instance );
i want to get correl id from procInstance[0], but it seems not function supported.
Can somebody help? thanks very much! |
|
Back to top |
|
 |
jmac |
Posted: Mon Feb 27, 2006 8:11 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
Correlation IDs are only used when using the XML interface. When using the API you never need a correlation id. Have a look at some of the IBM supplied samples. _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
vennela |
Posted: Mon Feb 27, 2006 8:20 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
After completely agreeing with John, I wanted to see why somebody needs a CorrelId and in what context. |
|
Back to top |
|
 |
neweric |
Posted: Mon Feb 27, 2006 6:21 pm Post subject: |
|
|
Newbie
Joined: 27 Feb 2006 Posts: 8
|
vennela wrote: |
After completely agreeing with John, I wanted to see why somebody needs a CorrelId and in what context. |
yes,i use XML interface, and we want to a tool to get some information of a process, correl id is a important criteria. Can u tell me how to get it? |
|
Back to top |
|
 |
vennela |
Posted: Mon Feb 27, 2006 10:03 pm Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
neweric wrote: |
vennela wrote: |
After completely agreeing with John, I wanted to see why somebody needs a CorrelId and in what context. |
yes,i use XML interface, and we want to a tool to get some information of a process, correl id is a important criteria. Can u tell me how to get it? |
There is a repository on this site (on the top of the page).
Goto the java section and there is a ProcessTemplateCreateAndStartInstance program that does exactly this. |
|
Back to top |
|
 |
elvis_gn |
Posted: Tue Feb 28, 2006 1:37 am Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
Hi guys,
Its been a long time since I worked on Workflow, but is there a correlId in workflow, isn't it only in MQ messages.....?
Are you guys referring to the same correlId...??
If yes, then how can workflow have the API of MQ....won't we explicitly have to set it in a variable or the processInstanceId or whatever.....
Regards. |
|
Back to top |
|
 |
neweric |
Posted: Tue Feb 28, 2006 7:05 am Post subject: |
|
|
Newbie
Joined: 27 Feb 2006 Posts: 8
|
elvis_gn wrote: |
Hi guys,
Its been a long time since I worked on Workflow, but is there a correlId in workflow, isn't it only in MQ messages.....?
Are you guys referring to the same correlId...??
If yes, then how can workflow have the API of MQ....won't we explicitly have to set it in a variable or the processInstanceId or whatever.....
Regards. |
I know exactly what u mean, normally it is. but if this MQ message lost( for some reason),
and we need to write a tool to resolve this issue, and the only thing we know is process instance name, so I want to get correl id by process instance name, then I can construct a reply message containing this correl id and send it to exexmlinputq.
And now I get the correl id by directly connect to db2, , though sucessful,I think it is a bad way.
and i want to get it by using workflow api directly.
Thanks |
|
Back to top |
|
 |
vennela |
Posted: Tue Feb 28, 2006 8:24 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
Quote: |
so I want to get correl id by process instance name |
This is not possible
Quote: |
but if this MQ message lost( for some reason), |
I want to know how.
Because, MQ will not lose it. If you make the same efforts to rewriting your program, include some transactional behaviour, message will not be lost |
|
Back to top |
|
 |
elvis_gn |
Posted: Wed Mar 01, 2006 4:28 am Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
Hi neweric,
You could browse the message, create the instance and then do a read on it, if the instance creation was successful.....
Also, you could store the corelId in the instance name, or the description or as a variable in the workItem.....
Regards. |
|
Back to top |
|
 |
neweric |
Posted: Wed Mar 01, 2006 5:50 am Post subject: |
|
|
Newbie
Joined: 27 Feb 2006 Posts: 8
|
elvis_gn wrote: |
Hi neweric,
You could browse the message, create the instance and then do a read on it, if the instance creation was successful.....
Also, you could store the corelId in the instance name, or the description or as a variable in the workItem.....
Regards. |
that's make sense |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|