Skip to Content
0
Jul 23, 2016 at 01:29 PM

How to identify which event triggered in the worklow

37 Views

Hello All,

i have a scenario like below,

There is a Fiori app which has two buttons

1. Start workflow

2. Restart workflow

I have created 2 events in my Custom Business Object ( ZBUS1234 )

1.START

2.RESTART

I have provided both the events in my custom workflow template( WS99000101 ) header start events, activated event linkages, and Binding etc,

when the user starts workflow for the first time i have to send email to an agent saying workflow started and proceed with next steps ( user decision )

when the user restarts workflow i have to send email to his manager saying workflow restarted and proceed with next steps ( user decision ).


Now my Question is how can i identify which event triggered in side the workflow? I have an option to ask Fiori developer to send some flag to identify in the importing parameter along with the event, But is there any better option to identify which event triggered with in the workflow?