Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

event not triggered with BUS2088 when released

former_member186143
Active Contributor
0 Kudos

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 ?

3 REPLIES 3

Former Member
0 Kudos

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

0 Kudos

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 ?

former_member186143
Active Contributor
0 Kudos

cleaning up old questions, still amazed that I have to mark them as answered since there came no proper answer at all.