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 » Cleanup Server not working as expected

Post new topic  Reply to topic
 Cleanup Server not working as expected « View previous topic :: View next topic » 
Author Message
k4mik4z3
PostPosted: Tue Dec 05, 2006 11:09 pm    Post subject: Cleanup Server not working as expected Reply with quote

Novice

Joined: 03 Aug 2006
Posts: 24
Location: India

Hi guys, we're having some trouble with the cleanup server.

Here's the scenario-

For one process template, we have the KEEP_WORKITEMS and KEEP_PROCESSES set to 1 hour. We created 2 workitems for them and completed them, Process instance is still Running and not finished.

Cleanup server is scheduled to run at midnight, and these workitems were completed at 10:30 pm. But the finished workitems are not getting cleaned up when it runs.
If the cleanup server is run manually by the admin, they are getting removed as expected.

I noted that the cleanup server removes Finished Process Intances as expected but not the workitems. So what could be the problem ? With the settings we 've used ? The following are the settings we've used -

Code:

  SERVER
    TYPE EXECUTION_SERVER
    CHECK_INTERVAL 5 MINUTES
    NUMBER_OF_INSTANCES 4
    EXTERNAL_CONTROL NO
    NO IMMEDIATE_CLEANUP
    NAVIGATION_TRANSACTION_THRESHOLD 1999999999
  // -------------------------------------------------------------------------
  SERVER
    TYPE SCHEDULING_SERVER
    START_MODE DEFERRED
    CHECK_INTERVAL 5 MINUTES
    CREATE_NOTIFICATION_ITEMS_THRESHOLD 10
    DELETE_NOTIFICATION_ITEMS_THRESHOLD 500
    NOTIFICATION_CHECK_INTERVAL 5 MINUTES
  // -------------------------------------------------------------------------
  SERVER
    TYPE CLEANUP_SERVER
    START_MODE DEFERRED
    START_TIME EVERY DAY AT 0:00
    STOP_TIME EVERY DAY AT 6:00
    CHECK_INTERVAL 5 MINUTES
    CLEANUP_TIME 7 DAYS
    CLEANUP_DELAY_TIME 1 HOURS


Any changes required to these settings or are there any other settings we need to change ?
Back to top
View user's profile Send private message Yahoo Messenger
jmac
PostPosted: Wed Dec 06, 2006 6:20 am    Post subject: Reply with quote

Jedi Knight

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

If I understand you correctly, this is working as expected. The cleanup server will only delete the workitems, once the Instance is finished, and I think you are saying that the the instance is still running.
_________________
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
k4mik4z3
PostPosted: Wed Dec 06, 2006 8:40 pm    Post subject: Reply with quote

Novice

Joined: 03 Aug 2006
Posts: 24
Location: India

Yes that is the case currently, but we want to configure it in such a way that the workitems WILL be deleted exactly one hour after completion (assume cleanup server is running at that time) no matter how long the process instance remains running...
Back to top
View user's profile Send private message Yahoo Messenger
jmac
PostPosted: Thu Dec 07, 2006 6:26 am    Post subject: Reply with quote

Jedi Knight

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

It is my opinion that what you want can not be done.
_________________
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
k4mik4z3
PostPosted: Fri Dec 08, 2006 5:31 am    Post subject: Reply with quote

Novice

Joined: 03 Aug 2006
Posts: 24
Location: India

Ouch !

Anyway, let me explain, there was this attribute FMC_NO_WORKITEM_CLEANUP which was set to YES, The workflow server was recycled and then we tested this scenario.

This time the workitems WERE being cleaned up before the process instances went into 'Finished' state. BUT workitems due to be cleaned 10 hours later were also getting cleaned up.

So I wanna know if this attribute really made the difference or this was some freak occurence due to something other reason.
Btw i'm not the WF admin so I cannot export this attribute at will and test it
Back to top
View user's profile Send private message Yahoo Messenger
jmac
PostPosted: Fri Dec 08, 2006 6:36 am    Post subject: Reply with quote

Jedi Knight

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

FMC_NO_WORKITEM_CLEANUP is a way to boost performance of the Cleanup server. It is documented in the Admin guide.

I was under the impression that no cleanup was done until the instance was complete, but I could be wrong with respect to the Workitems. The ActivityInstance can not be deleted, but I guess it is possible that the workitems could be deleted.
_________________
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: Fri Dec 08, 2006 11:10 am    Post subject: Reply with quote

Chevalier

Joined: 03 Feb 2002
Posts: 470

Hi,

if you have set the FMC_NO_WORKITEM_CLEANUP setting, this overrules the
KEEP_WORKITEMS setting, i.e. the workitems are deleted when the related process instance is deleted (see its description in the Admin Guide).

As FMC_NO_WORKITEM_CLEANUP is an environment variable, you might or might not have set it during startup of the server, which may explain different results. Note also, that the value of FMC_NO_WORKITEM_CLEANUP does not make a difference, the server only checks whether it is set or not.
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 » Cleanup Server not working as expected
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.