<br><font size=2 face="sans-serif">Hi all,</font>
<br>
<br><font size=2 face="sans-serif">we are on ECC 6.0 and using an add-on
(Vistex) to handle all sorts of rebates and agreements.</font>
<br>
<br><font size=2 face="sans-serif">There are 3 possible status for an agreement:
Blocked, Ready for Review and Released.</font>
<br>
<br><font size=2 face="sans-serif">When the user is ready to send the agreement
for approval, he/she manually changes the status from Blocked to Ready
for Review. Status Management has been configured so this change in status
publishes the event 'approvalstarted', thereby triggering the workflow.
So far, no worries, all is working fine.</font>
<br>
<br><font size=2 face="sans-serif">There are 2 levels of approval. Once
all the approvers have approved the agreement, the workflow sets the status
of the agreement to 'Released'. Once that has successfully happened, a
few emails are sent.</font>
<br>
<br><font size=2 face="sans-serif">Everything is working fine.</font>
<br>
<br><font size=2 face="sans-serif">The problem I am having is when the
agreement is manually set to 'Released', outside the workflow. If that
happens, I would like to terminate the workflow instance as it is no longer
relevant. I have put a wait step in a fork and I created a new entry in
the Status Management that publishes the event 'approved' when the status
is changed from 'Ready for Review' to 'Released'. </font>
<br>
<br><font size=2 face="sans-serif">The problem with that is that regardless
of how the status is set to 'Released' i.e. outside the workflow or inside
the workflow, the workflow gets terminated. If the status is set to 'Released'
inside the workflow, I need to send an email to the initiator and to Finance,
but the workflow gets terminated before I can send the emails.</font>
<br>
<br><font size=2 face="sans-serif">I could set the steps to send the email
to happen before the background step that set the status of the agreement
to 'Released', but I do not believe this is good practice?</font>
<br>
<br><font size=2 face="sans-serif">Any suggestions in how can I terminate
the workflow when the status of the agreement is manually changed outside
the workflow?</font>
<br>
<br><font size=2 face="sans-serif">Thanks in advance for any suggestions,</font>
<br>
<br><font size=2 face="sans-serif">Kind regards,<br>
<br>
Cristiana<br>
_________________________________<br>
Cristiana d'Agosto<br>
IBM Global Business Services<br>
Mobile: &nbsp;+61 417 927 224<br>
cristiana.dagosto@au1.ibm.com</font>