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 » Identifing Process Instances using Workflow API

Post new topic  Reply to topic
 Identifing Process Instances using Workflow API « View previous topic :: View next topic » 
Author Message
mca
PostPosted: Mon Apr 03, 2006 12:25 pm    Post subject: Identifing Process Instances using Workflow API Reply with quote

Disciple

Joined: 09 Mar 2005
Posts: 196

I have 2 instances of Workflow running with the same order no. Now we start 3rd instance for the same order no. and for it to proceed to next step, we need to check if the earlier two instances are done running. In all the 3 instances Source System variable value differs.

Can we do this uisng Workflow API? Like to check if there are any process instances running for that order no. except for the self.

Our business logic is if there are any running, then sleep for 10 mins and check again...if not proceed to second step.

Can anyone tell if we can do this using API? If so how?

Thanks,
MCA
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger
jmac
PostPosted: Mon Apr 03, 2006 12:56 pm    Post subject: Reply with quote

Jedi Knight

Joined: 27 Jun 2001
Posts: 3081
Location: EmeriCon, LLC

If I am understanding you correctly, this should be no problem.... You simply check to see if the other 2 instances are running based on their names.
_________________
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
rokual
PostPosted: Mon Apr 03, 2006 12:58 pm    Post subject: Reply with quote

Apprentice

Joined: 07 Feb 2006
Posts: 26

Hi,

Can you be more specific on how to use the API?
thanks
R
Back to top
View user's profile Send private message
rokual
PostPosted: Mon Apr 03, 2006 3:19 pm    Post subject: Reply with quote

Apprentice

Joined: 07 Feb 2006
Posts: 26

Hi John,

Can you be more specific on your detail of using API for the scenario explained by MCA. Can you point us to any sample programs, if available?

For example, capturing all the instances that are running/suspended with same(similar) order numbers?

Thanks,
R
Back to top
View user's profile Send private message
jmac
PostPosted: Mon Apr 03, 2006 9:17 pm    Post subject: Reply with quote

Jedi Knight

Joined: 27 Jun 2001
Posts: 3081
Location: EmeriCon, LLC

Simplly use the queryProcessInstances with a filter and that should do it
_________________
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
hos
PostPosted: Mon Apr 03, 2006 11:06 pm    Post subject: Reply with quote

Chevalier

Joined: 03 Feb 2002
Posts: 470

Hi,
you should use a ProcessContext value to logically group related process instances. It was designed to meet exactly your usage pattern. See the Programming Guide (CreateAndStart or Start process instances) how to use a process context.
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 » Identifing Process Instances using Workflow API
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.