Cancel subflow leaves main workflow open....
Raskin Alon x8008
ARaskin at Citipower.com.au
Wed Dec 6 18:28:38 EST 2000
I am glad it worked.
I guess what happens is that when you call the status_change method it runs
through all the work items which are 'owned' by that work item and then also
deletes them (this would include the work item which is created for Workflow
B) . In regards to the 'notify agent upon completion', I would assume that
the reason that is not being executed is because the ITEM is not being
completed, it is being LOGICALLY DELETED.
Regards,
Alon Raskin
+61 3 411 691 396
-----Original Message-----
From: Michael Pokraka [mailto:MPokraka at samsungsemi.co.uk]
Sent: Thursday, 7 December 2000 03:57 AM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Re: Cancel subflow leaves main workflow
open....
Alon,
That's gotta be one of the neatest workarounds I've seen in
a while. Yep, it
works 100% as intended - even better:
The STATUS_CHANGE method of the 'calling' WF object cancels
BOTH workflows
IMMEDIATELY. Even a 'notify agent upon completion' within
the same task
doesn't get executed, which I found particularly
interesting.
Thanks.
Michael
-----Original Message-----
From: Raskin Alon x8008 [mailto:ARaskin at Citipower.com.au]
Sent: 05 December 2000 23:03
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Re: Cancel subflow leave main workflow open....
I am not sure if this would work (you would have to try it).
Why don't you
pass in the top level workitem from flow A into flow B?
Then you have a reference to flow A inside of flow B. If
flow B ever
cancels, you can then cancel flow A (by calling method
WORKITEM.STATUS_CHANGE passing in 'CANCELLED' as the new
status). Hint : Do
not call WORKITEM.DELETE as this will actually remove all
the table entries
relating to that work item.
Let me know if this works.
Regards,
Alon Raskin
+61 3 411 691 396
-----Original Message-----
From: Michael Pokraka
[mailto:MPokraka at samsungsemi.co.uk]
Sent: Wednesday, 6 December 2000 12:32 AM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Cancel subflow leave main
workflow open....
Hi,
OK, 'scuse me asking more questions than
posting useful
stuff -
nevertheless, good bunch of folks on this
list (& thanks to
all who have
responded so far).
I have another question: If I have a
subworkflow, which gets
cancelled via
flow control (04 - cancel workflow), the
calling w/flow is
still active
whereas the subflow has the status
'Logically deleted'.
Adding something to the event 'Processing
obsolete' in the
calling W/F has
no effect either, nor can I find any way to
add events or
terminating events
etc....
Is there another 'standard' way for handling
this?
In more detail:
Flow A calls flow B which executes in a
loop. User can opt
out at one point
by cancelling the w/flow. This sets flow B
to 'log.
deleted', and flow A to
'in process' with no further steps....
ideally I'd want to
set flow A to
'logically deleted' as well as it would be
useful to
distinguish between
them on a workflow statistic level.
Adding a cancellation flag into the loop
condition is a bit
messy for my
liking as it's a relatively long subflow -
I'd would have to
add conditions
all over the show.
TIA,
Michael Pokraka
SAP EDI Analyst
Samsung Semiconductor Europe Ltd
Tel: +44 (0)20 8380-7050
Fax: +44 (0)20 8380-7218
This message transmitted on 100% recycled
electrons.
-----------------------------------------------------------------------
The information contained in this email may
be privileged,
confidential
and protected from disclosure. The opinions
expressed are
those of the
individual and not Samsung Semiconductor
Europe Ltd or
Samsung
Electromechanics Ltd. Internet
communications are not secure
and
therefore Samsung Semiconductor Europe Ltd
and Samsung
Electromechanics Ltd do not accept legal
responsibility for
the contents
of this message. If you think you have
received this email
in error please
notify the sender or mail
"admin at samsungsemi.co.uk" and
delete any
copies of the mail.
**********************************************************************
This email and any files transmitted with it are
confidential and
intended solely for the use of the individual or entity to
whom they
are addressed. If you have received this email in error
please notify
the system manager.
This email message has been swept for the presence of
computer viruses.
CitiPower Pty ACN 064 651 056
**********************************************************************
-----------------------------------------------------------------------
The information contained in this email may be privileged,
confidential
and protected from disclosure. The opinions expressed are
those of the
individual and not Samsung Semiconductor Europe Ltd or
Samsung
Electromechanics Ltd. Internet communications are not secure
and
therefore Samsung Semiconductor Europe Ltd and Samsung
Electromechanics Ltd do not accept legal responsibility for
the contents
of this message. If you think you have received this email
in error please
notify the sender or mail "admin at samsungsemi.co.uk" and
delete any
copies of the mail.
More information about the SAP-WUG
mailing list