Re: Parallel activities, loops and process termination

Sasa Bojanic <[email protected]> Sat, 03 Oct 2009 17:28:51 +0200
Newsgroups gmane.comp.java.enhydra.shark
Message-ID <[email protected]>
This is a multi-part message in MIME format...

------------=_1254584109-18930-7072
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

If I understood correctly, B and C stayed connected to D, and they both 
got conditional check to E so if there was an error after executing B or 
C, E is always triggered.
The problem is that process is not finished until all of its activities 
are finished...and after e.g. activity B completed with an error...E was 
executed and finished...activity C was still active and thus process 
didn't finish. Even if you complete activity C afterwards (without 
error)...it goes to D and process waits until there is another 
transition (from B) merged to D...which will never happen...and process 
will hang.

What you probably need is to terminate process if either activity B or C 
goes with error check transition to E to terminate the process. This can 
be implemented by tool agent in activity E which would terminate 
activity B/C (or maybe even the whole process...but this one I'm not 
sure how will it behave since you are "cutting the branch where you are 
sitting at").

Regards,
Sasa.

DS wrote:
> Hello,
>
> I have a small problem - my process splits and merges again. However while
> split, due to some events, I need to stop/terminate/finish the process
> prematurely. For example, here is connectivity matrix:
> 0 A B C D <- 'to' activity
> A 0 1 1 0
> B 0 0 0 1
> C 0 0 0 1
> D 0 0 0 0
> (A->B,C->D), type of join at D is AND (B,C must be finished before D is
> created).
> So what I need to achive is that if B or C are completed with an error, the
> process should be finished. 
> I tried to connect B and C to E, with conditional link and error check so that
> E is connected to finish. However currently if error condition is triggered and
> E is created and completed (E's performer is the system with auto start and
> finish), the process for some reason is not terminated. Why? What do I do
> wrong?
>
> Thank you,
>
> DS
>   


------------=_1254584109-18930-7072
Content-Type: text/plain; charset="UTF-8"; name="message-footer.txt"
Content-Disposition: inline; filename="message-footer.txt"
Content-Transfer-Encoding: quoted-printable


--
You receive this message as a subscriber of the [email protected] mailing lis=
t.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=3Dhelp
OW2 mailing lists service home page: http://www.ow2.org/wws

------------=_1254584109-18930-7072--