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 » terminate() or finish()

Post new topic  Reply to topic
 terminate() or finish() « View previous topic :: View next topic » 
Author Message
aghallab
PostPosted: Sat Oct 28, 2006 4:07 am    Post subject: terminate() or finish() Reply with quote

Apprentice

Joined: 20 Jul 2004
Posts: 31

When I finish the process should I use method terminate or finish ?.
Because now I just send any message from last workitem connected to sink node in process so process finished or disappear.
But I don’t know if the cleanup server can clean my finished processes without using method terminate or finish finishing them?
Thanx
Back to top
View user's profile Send private message
jmac
PostPosted: Sat Oct 28, 2006 5:45 am    Post subject: Reply with quote

Jedi Knight

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

Here is how I look at it:

Fininsh is considered normal completion
Terminate is considered abnormal completion

You bring up an interesting question, it is my opinion that an instance in the Terminated state will NOT be deleted, but an instance in the Finished state will be deleted (based on your domain settings for Process Times).
_________________
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
aghallab
PostPosted: Sat Oct 28, 2006 6:12 am    Post subject: Reply with quote

Apprentice

Joined: 20 Jul 2004
Posts: 31

But in code I didn’t use finish method or terminate just as I said before workitem.chekin() and this workitem is the last one in process so process disappear . Is this way consider terminate or finish for process? I try to get this process by state finish or terminate but no result so what the state of process finished without using finish method.
Back to top
View user's profile Send private message
jmac
PostPosted: Sat Oct 28, 2006 6:19 am    Post subject: Reply with quote

Jedi Knight

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

So that would be a normal completion and the state of that instance would be finished, so therefore that would be cleaned up based on the Process Times info for your domain.
_________________
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
koko
PostPosted: Sat Oct 28, 2006 3:54 pm    Post subject: Reply with quote

Master

Joined: 26 Sep 2003
Posts: 206

Quote:
it is my opinion that an instance in the Terminated state will NOT be deleted, but an instance in the Finished state will be deleted (based on your domain settings for Process Times).


Jmac,

I didnt quite get it. If clean up server strictly goes by the domain settings, what difference would it make if an instance completed gracefully or was terminated?.
_________________
Thanks

Koko
Back to top
View user's profile Send private message
jmac
PostPosted: Sat Oct 28, 2006 5:35 pm    Post subject: Reply with quote

Jedi Knight

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

Koko:

A terminated instance can be Restarted, so my reasoning was that it would not be deleted... after having a look at the state diagrams, I can now see that I was wrong... it will be deleted, when eligible by the cleanup server.

Sorry for any confusion
_________________
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 » terminate() or finish()
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.