JBoss Community

Re: Issue with timer and calendar

created by saig0 in jBPM - View the full discussion

Hi Srikant,

 

you need to declare the class Alarm as a fact or an event and import it.

 

import your.package.Alarm;
 
declare Alarm
          @role( fact)  // or @role( event)
end

 

The class Alarm can be a pojo or be declared in rule.

The rule "week days rule" will fire when you insert a object of class Alarm.

Reply to this message by going to Community

Start a new discussion in jBPM at Community