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 » Process expiration is not working... HELP ME!!!

Post new topic  Reply to topic
 Process expiration is not working... HELP ME!!! « View previous topic :: View next topic » 
Author Message
marcioalcantara
PostPosted: Thu Sep 26, 2002 11:09 am    Post subject: Process expiration is not working... HELP ME!!! Reply with quote

Novice

Joined: 25 Jun 2001
Posts: 23

Hi, All.

Does anyone know how can I terminate a process instance after specific time?

I'm trying to use the DURATION OF PROCESS property from Diagram properties in MQWF Buildtime and, after the time specified, is created only a notification work item in the user work list, and the proces instance still running.

Thanks a lot.


Bye.
Back to top
View user's profile Send private message AIM Address
jmac
PostPosted: Thu Sep 26, 2002 12:09 pm    Post subject: Reply with quote

Jedi Knight

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

There is no way to get a ProcessInstance to Terminate based on a time limit.

Let's assume that your ProcessTemplate (ProcessModel) is "TEMP001"

What you need to do is to set your ProcessDuration (like you have already done) being sure that you specify a ProcessAdministrator. I would use a dummy user let's call them "PADMIN"

Now when the ProcessDuration has expired, the Notification will be sent to the ProcessAdministrator.

What you need is a job that runs on a cron, the periodically wakes up and loggs in as user "PADMIN" and then runs the ProcessInstanceNotificationList. Any process intstances on this list that were created from "TEMP001" can then be terminated using the API.
_________________
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
marcioalcantara
PostPosted: Thu Sep 26, 2002 12:34 pm    Post subject: Reply with quote

Novice

Joined: 25 Jun 2001
Posts: 23

Thank you very much for your support.

I'll try to do that.


Bye.
Back to top
View user's profile Send private message AIM Address
jmac
PostPosted: Thu Sep 26, 2002 3:27 pm    Post subject: Reply with quote

Jedi Knight

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

If you have a problem just post the specifics and I will see if I can help you.
_________________
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
marcioalcantara
PostPosted: Fri Oct 04, 2002 7:49 am    Post subject: Reply with quote

Novice

Joined: 25 Jun 2001
Posts: 23

Hi, John?


Do you have a java sample to query a proccess instance and terminate it?


I'm trying to make a Dummy test now but I don't have an example with me.

Thanks a lot.
Back to top
View user's profile Send private message AIM Address
jmac
PostPosted: Fri Oct 04, 2002 8:01 am    Post subject: Reply with quote

Jedi Knight

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

Here's a little snip of code:

Code:

ProcessInstance [] pi = myExecService.queryProcessInstances(
      "NAME = '<the pi name you want>'",
      null,null)
if ( pi.length != 0 )
  System.out.println("Could not find pi");
else
{
  pi[0].terminate

}


_________________
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
marcioalcantara
PostPosted: Tue Oct 15, 2002 9:46 am    Post subject: Reply with quote

Novice

Joined: 25 Jun 2001
Posts: 23

Thank you!
Back to top
View user's profile Send private message AIM Address
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 » Process expiration is not working... HELP ME!!!
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.