ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » urgent, and thanks for your help!

Post new topic  Reply to topic
 urgent, and thanks for your help! « View previous topic :: View next topic » 
Author Message
neweric
PostPosted: Mon Feb 27, 2006 7:54 am    Post subject: urgent, and thanks for your help! Reply with quote

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
View user's profile Send private message
jmac
PostPosted: Mon Feb 27, 2006 8:11 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
vennela
PostPosted: Mon Feb 27, 2006 8:20 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
neweric
PostPosted: Mon Feb 27, 2006 6:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
vennela
PostPosted: Mon Feb 27, 2006 10:03 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
elvis_gn
PostPosted: Tue Feb 28, 2006 1:37 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
neweric
PostPosted: Tue Feb 28, 2006 7:05 am    Post subject: Reply with quote

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
View user's profile Send private message
vennela
PostPosted: Tue Feb 28, 2006 8:24 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
elvis_gn
PostPosted: Wed Mar 01, 2006 4:28 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
neweric
PostPosted: Wed Mar 01, 2006 5:50 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » urgent, and thanks for your help!
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.