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 » Counting workitems

Post new topic  Reply to topic
 Counting workitems « View previous topic :: View next topic » 
Author Message
Kelme
PostPosted: Wed Oct 25, 2006 5:53 am    Post subject: Counting workitems Reply with quote

Newbie

Joined: 25 Oct 2006
Posts: 4
Location: Berlin

Hi,

are there any possibilities to count how often a workitem has started (looped) without using an external program or service? That means can I define a member of a data structure in way like: DataStructure.Member=DataStructure.Member + 1

Thanks in forward
Back to top
View user's profile Send private message
kotha
PostPosted: Wed Oct 25, 2006 6:43 am    Post subject: Reply with quote

Partisan

Joined: 12 Mar 2005
Posts: 333

Ya. You can add one more element to the data structure and add the logic.
Back to top
View user's profile Send private message
jmac
PostPosted: Wed Oct 25, 2006 6:49 am    Post subject: Re: Counting workitems Reply with quote

Jedi Knight

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

Kelme wrote:
That means can I define a member of a data structure in way like: DataStructure.Member=DataStructure.Member + 1


This is not possible, you need to increment the member inside some activity. The Java Snippet from WPS would ge great here

I am not sure what you are trying to do here, so this may not help, but you can also use the data in the Audit Table to know how many times a particular workitem looped.
_________________
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
Kelme
PostPosted: Wed Oct 25, 2006 7:11 am    Post subject: Reply with quote

Newbie

Joined: 25 Oct 2006
Posts: 4
Location: Berlin

A short description of the problem:

I have a workitem in which a customer will get a reminder to send in some papers. He will get maximal 3 reminders. After that third reminder the process should stop. With just 3 loops it is easy to define this behavior in the logic of the model but how should I do it when it is allowed to loop 40,50 or 100 times.
To do the calculation in a service isn't complicated as well. But in cases like this I always get a question from the HOST or Java programmers why MQWF isn't able to do a simple calculation like 1+1. (I'm just responsible for business logic and workflow modelling, not for UPES or anything else)
Until today I was always pretty sure that MQWF can't calculate. But after so many questions I'm afflicted by doubts.
Back to top
View user's profile Send private message
jmac
PostPosted: Wed Oct 25, 2006 7:29 am    Post subject: Reply with quote

Jedi Knight

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

Kelme:

You are 100% correct, WMQWF can not do the calculation directly on the data connector as it appears your questioners would like.

A simple solution to this issue has always been the same. Define a member i, initialize it to 0, prior to entry into the block you are looping through. Within the block increment i. Specify the Block Exit condition based on i and how many times you wish to loop.

Note that in my example I am using Block, but this could be a single activity looping via it's exit condition also.
_________________
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
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 » Counting workitems
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.