cancel workflow when quantity payment block is cleared outsid e the workflow

de Valensart Schoenmaeckers, Patrick Patrick.deValensartSchoenmaeckers at pmintl.com
Thu Jan 30 03:25:13 EST 2003


Torsten,
 
If the clearance is inside the workflow, the event created by your change
document will have the container element _EVT_CREATOR with value USWF-BATCH.
If it is cleared outside of the workflow, that same container element will
contain USXXXX  (XXXX standing for any other username than WF-BATCH).
 
Put a fork in your workflow that ends with only one branch. In one branch
you can put your business flow, in the other, add a wait for event step that
listens to the event created by your change document. In that step, bind
_EVT_CREATOR from the event container to a similar element in the workflow
container.
That wait for event should be in a "loop until" step where you test that the
container element that you filled with _EVT_CREATOR is not equal to
USWF-BATCH. If that condition is true, the loop will end, then also the
branch will end, and as a consequence you workflow will finally end.
 
Hope this helps,
 
Patrick
 
-----Original Message-----
From: Torsten Schnorpfeil [mailto:torsten at processflow.de]
Sent: Wednesday, January 29, 2003 22:25
To: SAP-WUG at MITVMA.MIT.EDU
Subject: cancel workflow when quantity payment block is cleared outside the
workflow
 
Hi folks,
 
here's the thing: Does anybody ever developed a workflow scenario where you
raise workflows due to quantity variances (blocked due to quantity)?
 
How do you solve it, if the workflow instance is still running and the
payment block is cleared/released outside the workflow.
 
I was thinking about using change documents, but then how can you
differentiate between the clearance inside and outside the workflow?
 
Any hints highly appreciated!
 
Cheers,
Torsten
 


More information about the SAP-WUG mailing list