cancel
Showing results for 
Search instead for 
Did you mean: 

SAP DMC Custom plugin

anvesh_v
Discoverer
0 Kudos

Dear SAP Community,

I'm new to SAP DMC we have a requirement where we need to create custom view plugin that shows the cowntdown

Timer for 2 min (e.g. 00:02:00, 00:01:59, ...., 00:00:00) .the timer should start on click of Start Button from POD.

and stop the Timer on click of Complete Button from POD.

is there a way that we can show the timer i.e., custom view plugin on Start of SFC and stop the timer on complete of SFC

note:there are standard start and complete plugins are assigned to each of the buttons respectively.

Thanks in advance.

regards,

Anvesh

Accepted Solutions (0)

Answers (1)

Answers (1)

Kevin_Hunter
Employee
Employee

Hi Anvesh,

Yes this is perfectly possible and I wrote something very similar last year. You have two options, you can use the internal POD events that are triggered when the SFC is started and completed or you can use the external POD Notifications and then attach a production process to the Start and Complete buttons that send a notification into your plugin.

Thanks

Kevin

anvesh_v
Discoverer
0 Kudos

Hi kevin,

Thanks for the response

which are the internal POD events that are triggered when SFC is started and completed.

do we have any reference that i can understand internal POD events.

regards,

Anvesh

Kevin_Hunter
Employee
Employee
0 Kudos

Hi Anvesh,

Yes the events are detailed in the POD developers guide Plugin Events although it doesn't appear to have all of the events listed .

Add this to your handleOnBeforeRenderingPlugin function

this.subscribe("StartExecutionEvent", this.onStartExecutionEvent, this); 
this.subscribe("FinishedExecutionEvent", this.onFinishedExecutionEvent, this);

Then create your two event handlers eg

onStartExecutionEvent: function(sChannelId, sEventId, oData){  }

oData contains information about the event that you can use in your function.

The other approach is to use the external POD notifications which may give you a little more flexability. If you are using my yoman tool to start you POD build then it already adds the boilerplate code for external notifications .

Hope this helps

Kevin