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 » keep the finished workitems in block activity: STATE 4096

Post new topic  Reply to topic
 keep the finished workitems in block activity: STATE 4096 « View previous topic :: View next topic » 
Author Message
MQRR
PostPosted: Tue Sep 13, 2005 5:30 pm    Post subject: keep the finished workitems in block activity: STATE 4096 Reply with quote

Centurion

Joined: 10 Aug 2003
Posts: 110

here is our scenario:

we have a process "MainP" with block "BlockB" which has activity "ActivityA" in it with an exit condition like
isTrue = "T".

When MainP is started the BlockB is executed and ActivityA creates workitem "WorkitemA" and when I complete with isTrue = "F", the block runs again.
Everything is good so far, my problem is, i need to display each workitem that has been completed for each iteration of the block.

For example suppose i have three iterations:

1st iteration:

BlockB creates WoorkitemA1 .
Complete WorkitemA1 with exit condition F

2nd iteration:

BlockB creates WoorkitemA2 .
Complete WorkitemA2 with exit condition F

3rd iteration:

BlockB creates WoorkitemA3 .
Complete WorkitemA3 with exit condition T

Now I need display WorkitemA1, WorkitemA2 and WorkitemA3 in the completed worklist. (I have new list that displays the completed workitems)

But as for my tests it displays only workitemA3.

We tried one more way, created SUbProcessP inside BlockB and placed the activity ActivityA inside that. even then it does not work.

I went and looked into the Work_item table in runtime database,
and I see WorkitemA1, WorkitemA2 have state 4096 (logically deleted,i guess).
Is there way i can display these or is there a hack that anyone know of that i can implement in the model?

Any help or ideas is greatly appreciated,
Thanks,

MQRR
Back to top
View user's profile Send private message
hos
PostPosted: Tue Sep 13, 2005 11:00 pm    Post subject: Reply with quote

Chevalier

Joined: 03 Feb 2002
Posts: 470

Hi,

you may try to use the IMMEDIATE_CLEANUP, KEEP_WORKITEMS and KEEP_PROCESSES FDL options. See the Admin Guide for the meaning of these options. however I am not sure, whether this will solve the problem to see all instances of a block loop.
Back to top
View user's profile Send private message
elvis_gn
PostPosted: Wed Sep 14, 2005 1:19 am    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi MQRR,
Why dont u create another ActivityB in the blockA, and set the condition to enter as true "T"....

When the workitem exits with "F" it will iterate and when its "T" it will end up in the ActivityB....If you provide a variable in the container u could get the number of iterations also.....

But what do u plan to do with these workitems....will u ever delete them ?? I hope u do as they are unnecessary load....
Back to top
View user's profile Send private message Send e-mail
jmac
PostPosted: Wed Sep 14, 2005 5:24 am    Post subject: Reply with quote

Jedi Knight

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

It is my opinion that what you are seeing is the correct behavior.

When a block ends and repeats due to exit condition, you only have a record in the ActivityInstance object of the newly Created Workitems in that block.

What I am hearing you say is you want to see the iterations of all of the workitems in the block "n" times, where "n" is the number of iterations in the block. This will not happen with the ActivityInstance object in my opinion.

If you really need this "historical" information, I would add a UPES activity to the end of the block that obtains the information you need from the BlockInstance monitor prior to the block ending.

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
MQRR
PostPosted: Wed Sep 14, 2005 11:15 am    Post subject: Reply with quote

Centurion

Joined: 10 Aug 2003
Posts: 110

Thanks for all your replies.

hos,
we have these settings in FDL, so i dont think there is anything we can do here that would help us.


KEEP_WORKITEMS FOREVER
KEEP_PROCESSES 30 DAYS

NO IMMEDIATE_CLEANUP

elvis_gn,

i did not quite understand the solution. I guess no matter how many activities i put in the block it will just delete them once it reruns the block, so i dont think that would help me in getting the history, let me know if i am wrong or if i misunderstood you.

jmac,

"What I am hearing you say is you want to see the iterations of all of the workitems in the block "n" times, where "n" is the number of iterations in the block. This will not happen with the ActivityInstance object in my opinion. "



that is exactly right, that is what we are trying to do and i know it is behaving the right way.
But we are trying to hack this behaviour so that i could display all of those workitems.

If we use UPES actitivity to get the information we want, for example:

If we have the ActivityA and UpesB following it, even if we get the information like the work item id we will not be able to display the workitem
in later stages (since it has been deleted) or can we? or are you saying we need get all the information for that workitem and store it in an external table and then use it display where we want to.

is there a way i can create a worklist that displays the deleted workitems?
Back to top
View user's profile Send private message
jmac
PostPosted: Wed Sep 14, 2005 12:22 pm    Post subject: Reply with quote

Jedi Knight

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

MQRR wrote:
If we have the ActivityA and UpesB following it, even if we get the information like the work item id we will not be able to display the workitem in later stages (since it has been deleted) or can we?

I agree... IF I remember correctly (you should definitely check this) I think that the OID of the Workitem will not change when it is regenerated. IF I am correct, then the data for the original workitem is most likely lost since it is overlayed by the new workitem, you will never be able to redisplay the information you are looking for

Quote:

or are you saying we need get all the information for that workitem and store it in an external table and then use it display where we want to.


This is the only way that I think it can be done. I don't know what all you need, but if it not alot of information you should be able to store someplace.
Quote:

is there a way i can create a worklist that displays the deleted workitems?


I think you want to see all of the iterations of the single activity "A" and I do not think this will be possible.
_________________
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
MQRR
PostPosted: Wed Sep 14, 2005 3:10 pm    Post subject: Reply with quote

Centurion

Joined: 10 Aug 2003
Posts: 110

Thanks jmac.
I made some tests and i found that the workitem id is changing each new iteration. I need to see if i can use the workitem id of the history workitem and retrieve the inforamtion. If not I will be left with
only option of getting the informtion from external tables.

when i asked

"is there a way i can create a worklist that displays the deleted workitems?"

I was thinking of filter criteria like STATE in (FINISHED,RUNIING)
in similar fashion STATE in (DELETED), but i think there is none like that.

I will update this post with the final solution that i implemented.

MQRR
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 » keep the finished workitems in block activity: STATE 4096
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.