super-kill a process

View: New views
5 Messages — Rating Filter:   Alert me  

super-kill a process

by Vojtech Huser-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

we have a problem and would like some thoughts from others.

Shark does in most cases "explicit termination" of a whole process when the 'end node' is reached. (one of the workflow patterns).


Most of our activities have automatic start and end but few (which listen for external events) have manual start.
We found out that if a process reaches end node and there are some manual activities pending, the process is not terminated (when some end node is reached).

Q:Is there a way to "super-kill" a process (from within). (despite any open activities) (something like clicking the terminate button in the admin client)?.

Vojtech


--
You receive this message as a subscriber of the shark@... mailing list.
To unsubscribe: mailto:shark-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

Re: super-kill a process

by DS-22 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

How about process.abort?

On Thu, Nov 5, 2009 at 9:50 AM, Vojtech Huser <huser.vojtech@...> wrote:
Hi,

we have a problem and would like some thoughts from others.

Shark does in most cases "explicit termination" of a whole process when the 'end node' is reached. (one of the workflow patterns).


Most of our activities have automatic start and end but few (which listen for external events) have manual start.
We found out that if a process reaches end node and there are some manual activities pending, the process is not terminated (when some end node is reached).

Q:Is there a way to "super-kill" a process (from within). (despite any open activities) (something like clicking the terminate button in the admin client)?.

Vojtech


--
You receive this message as a subscriber of the shark@... mailing list.
To unsubscribe: mailto:shark-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws




--
You receive this message as a subscriber of the shark@... mailing list.
To unsubscribe: mailto:shark-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

Re: Re: super-kill a process

by Vojtech Huser-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

OK. That is a possibility.
How and where would you call this process.abort ? - in en external applications which accesses the engine via an API ?  (We could do that.But prefer a different solution.

Ideally we would do it within the process definition (in the XPDL) - "from within the process").
Something like "super-end node" in the XPDL.

I am not sure if the engine would like a a JavaClassToolAgent which calls process.abort  (Activity tries to kill the Parent Process) ? Would it work or crash the engine?

Vojtech




On Thu, Nov 5, 2009 at 12:04 PM, Dmitry Shulga <dmitry.shulga@...> wrote:
How about process.abort?

On Thu, Nov 5, 2009 at 9:50 AM, Vojtech Huser <huser.vojtech@...> wrote:
Hi,

we have a problem and would like some thoughts from others.

Shark does in most cases "explicit termination" of a whole process when the 'end node' is reached. (one of the workflow patterns).


Most of our activities have automatic start and end but few (which listen for external events) have manual start.
We found out that if a process reaches end node and there are some manual activities pending, the process is not terminated (when some end node is reached).

Q:Is there a way to "super-kill" a process (from within). (despite any open activities) (something like clicking the terminate button in the admin client)?.

Vojtech


--
You receive this message as a subscriber of the shark@... mailing list.
To unsubscribe: mailto:shark-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws




--
You receive this message as a subscriber of the shark@... mailing list.
To unsubscribe: mailto:shark-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws




--
You receive this message as a subscriber of the shark@... mailing list.
To unsubscribe: mailto:shark-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

Re: Re: Re: super-kill a process

by DS-22 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I know exactly why you are asking because I had the same problem. I wanted to terminate the process abruptly if some sort of exceptional case occurs. You may try to use a tool activity that will execute this command as I was advice before but it is not clear how engine will react to that suicide action. I had to abort the process externally. 

On Thu, Nov 5, 2009 at 1:05 PM, Vojtech Huser <huser.vojtech@...> wrote:
OK. That is a possibility.
How and where would you call this process.abort ? - in en external applications which accesses the engine via an API ?  (We could do that.But prefer a different solution.

Ideally we would do it within the process definition (in the XPDL) - "from within the process").
Something like "super-end node" in the XPDL.

I am not sure if the engine would like a a JavaClassToolAgent which calls process.abort  (Activity tries to kill the Parent Process) ? Would it work or crash the engine?

Vojtech




On Thu, Nov 5, 2009 at 12:04 PM, Dmitry Shulga <dmitry.shulga@...> wrote:
How about process.abort?

On Thu, Nov 5, 2009 at 9:50 AM, Vojtech Huser <huser.vojtech@...> wrote:
Hi,

we have a problem and would like some thoughts from others.

Shark does in most cases "explicit termination" of a whole process when the 'end node' is reached. (one of the workflow patterns).


Most of our activities have automatic start and end but few (which listen for external events) have manual start.
We found out that if a process reaches end node and there are some manual activities pending, the process is not terminated (when some end node is reached).

Q:Is there a way to "super-kill" a process (from within). (despite any open activities) (something like clicking the terminate button in the admin client)?.

Vojtech


--
You receive this message as a subscriber of the shark@... mailing list.
To unsubscribe: mailto:shark-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws




--
You receive this message as a subscriber of the shark@... mailing list.
To unsubscribe: mailto:shark-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws




--
You receive this message as a subscriber of the shark@... mailing list.
To unsubscribe: mailto:shark-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws




--
You receive this message as a subscriber of the shark@... mailing list.
To unsubscribe: mailto:shark-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

Re: Re: Re: super-kill a process

by 20mithrandir :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

What about conditinal transitions? You could always 'leave' the process wiht a transition ("on exception"). Isn't that a possibility?


2009/11/5 Vojtech Huser <huser.vojtech@...>
OK. That is a possibility.
How and where would you call this process.abort ? - in en external applications which accesses the engine via an API ?  (We could do that.But prefer a different solution.

Ideally we would do it within the process definition (in the XPDL) - "from within the process").
Something like "super-end node" in the XPDL.

I am not sure if the engine would like a a JavaClassToolAgent which calls process.abort  (Activity tries to kill the Parent Process) ? Would it work or crash the engine?

Vojtech



--
You receive this message as a subscriber of the shark@... mailing list.
To unsubscribe: mailto:shark-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws