04-11-2007 9:49 AM
I try to make a workflow task which is triggered on the event created with BUS2088
only when I create a serviceorder and save it the event is triggererd correcty
but when I create a serviceorder and release it and save it the event is not triggered and only the event released is triggered
both scenarios are legitimate but when a serviceorder is first saved before released then the workflow must be triggered. when the serviceorder is released a couple of days of weeks later the workflow must NOT be triggered.
is there a way to make sure that in both scenarios the workflow is only triggererd once for each serviceorder ?
04-11-2007 10:00 AM
Hi,
It depends on the Method and event that make the order to trigger.
to trigger when created or saved, you should have the Event SAVED and use the
same event.Similary for release you should have RELEASED event and that has to be used to trigger.
SO in PFTC Tcode create a Task attach the Business object and the relavent method and define the triggering event and binding definition such that the correct event is triggered and fired.
reward if useful
regards,
ANJI
04-11-2007 10:09 AM
yep but here is the scenario
I create a serviceorder. the event create is triggered and an email is send to the customer that the order has been received.
a few days later I release the serviceorder. the event released is triggered and another email will be sent that the order has been received. I DON'T want this second event to be triggered in case the event is already triggererd on create.
I only want to send a confirmation once.
so there is a problem with to many events are triggererd and executed
how can I prevent this from happening ?
07-22-2010 8:40 AM
cleaning up old questions, still amazed that I have to mark them as answered since there came no proper answer at all.