Scheduled events not triggered according to the schedule

Scheduled events not triggered according to the schedule

book

Article ID: KB0074926

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition 5.x

Description

Scheduled events are not triggered according to the schedule. Following is the code used to schedule the event :-
==================
long delay = 60000;
Cluster.scheduleEvent("MySchEvent", workKey, ev, delay);
==================
 

Issue/Introduction

Scheduled events not triggered according to the schedule

Environment

All

Resolution

One need to add System.currentTimeMillis() to the delay parameter according to the tooltip help for a given function in Studio. Correct usage is as follow :-
==================
long delay = 60000;
Cluster.scheduleEvent("MySchEvent", workKey, ev, System.currentTimeMillis()+delay);
==================
 

Additional Information

schedule events