Author |
Message
|
aghallab |
Posted: Sat Oct 28, 2006 4:07 am Post subject: terminate() or finish() |
|
|
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 |
|
 |
jmac |
Posted: Sat Oct 28, 2006 5:45 am Post subject: |
|
|
 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 |
|
 |
aghallab |
Posted: Sat Oct 28, 2006 6:12 am Post subject: |
|
|
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 |
|
 |
jmac |
Posted: Sat Oct 28, 2006 6:19 am Post subject: |
|
|
 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 |
|
 |
koko |
Posted: Sat Oct 28, 2006 3:54 pm Post subject: |
|
|
 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 |
|
 |
jmac |
Posted: Sat Oct 28, 2006 5:35 pm Post subject: |
|
|
 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 |
|
 |
|