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 » WorkFlow API Java WorkItem Query

Post new topic  Reply to topic
 WorkFlow API Java WorkItem Query « View previous topic :: View next topic » 
Author Message
kathykea
PostPosted: Fri Mar 08, 2002 2:05 pm    Post subject: Reply with quote

Newbie

Joined: 07 Mar 2002
Posts: 7

I am trying to query a WorkItem using the ExecutionService.queryWorkItems(String, String, Integer) method. Are there any good examples of filter strings anywhere? If I can, I would like to capture a specific WorkItem using the PersistentOid.
Back to top
View user's profile Send private message
jmac
PostPosted: Sat Mar 09, 2002 6:35 am    Post subject: Reply with quote

Jedi Knight

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

there is a method to get a workitem directly via PersistentOID, there is no query necessary.

_________________
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
JImmy
PostPosted: Sun Mar 10, 2002 6:18 pm    Post subject: Reply with quote

Acolyte

Joined: 23 Feb 2002
Posts: 59
Location: Shanghai, China

Try:
Integer intNum = new Integer(10);
queryWorkItem("Name LIKE '*'", "NAME", intNum)
Back to top
View user's profile Send private message Visit poster's website AIM Address
kathykea
PostPosted: Mon Mar 11, 2002 7:22 am    Post subject: Reply with quote

Newbie

Joined: 07 Mar 2002
Posts: 7

Thanks John and Jimmy. John, I haven't actually tried PersistentOid(), but the documentation states that this method creates a representation of the WorkItem and is not able to access the Workflow Server. Once I have retrieved the WorkItem, I want to be able to apply the start() method. Maybe there is a better way to do this. Any suggestions?
Back to top
View user's profile Send private message
jmac
PostPosted: Mon Mar 11, 2002 9:20 am    Post subject: Reply with quote

Jedi Knight

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

Kathy:

If you access the wi using PersistentOID from the Execution Server object you will most certainly be able to start the item.

GOOD LUCK

_________________
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
kathykea
PostPosted: Tue Mar 12, 2002 7:01 am    Post subject: Reply with quote

Newbie

Joined: 07 Mar 2002
Posts: 7

Thanks John, it works just as you said. And thanks for your quick response, it was greatly appreciated. I'm sure you'll be hearing from me again as our project progresses.
Back to top
View user's profile Send private message
cyl
PostPosted: Tue Apr 02, 2002 4:02 am    Post subject: Reply with quote

Newbie

Joined: 01 Apr 2002
Posts: 1

Hello there,

Would you mind explaining in more detail how it can be achieved as I am new to MQWF?

Specifically, we are using the Web-client. I would like to allow a user to create a new process-instance and then automatically kick-start the work item (without going through the work item page again). Seems that this thread has somehow provided a solution. Could anyone explain which API should be called?

Thanks for your help in advance!
Back to top
View user's profile Send private message
JImmy
PostPosted: Tue Apr 02, 2002 5:29 pm    Post subject: Reply with quote

Acolyte

Joined: 23 Feb 2002
Posts: 59
Location: Shanghai, China

cyl:
Starting process instance and starting work items are different things.
You can using createAndStart API to create and then start the instance. And a work item can be automatically executed if you define the start condition to "automatic" in build time and you have a valid user logon to run time.
Back to top
View user's profile Send private message Visit poster's website AIM Address
stubie
PostPosted: Tue Apr 02, 2002 7:59 pm    Post subject: Reply with quote

Novice

Joined: 05 Nov 2001
Posts: 14
Location: Charlotte, NC

One way to do this is to override the createAndStartInstance command using your own custom handler. Once the instance is started, query workitems using a filter of "PROCESS_NAME = <the name of your instance>". From that list, checkout the item you want, and pass control to the Viewer to render the page for the workitem.

This assumes that the process starter will already be the owner of the workitem, but that can be arranged in the process template.
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 » WorkFlow API Java WorkItem Query
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.