This content has been marked as final.
Show 3 replies
-
1. Re: Cron expression in jBPM5 gives exception
onkarruikar Dec 30, 2010 5:05 AM (in response to onkarruikar)Used following rule to run the process:
import org.drools.runtime.process.ProcessContext
rule "everyDay" ruleflow-group "Hello"
timer (cron:0 0 23 ? * FRI)
when
then
System.out.println(new java.util.Date());
kcontext.getKnowledgeRuntime().startProcess("sample");
end -
2. Re: Cron expression in jBPM5 gives exception
salaboy21 Jan 3, 2011 1:50 PM (in response to onkarruikar)ok and it works?
-
3. Re: Cron expression in jBPM5 gives exception
onkarruikar Jan 3, 2011 11:40 PM (in response to salaboy21)Yes. Register the rule and the process in knowledgebase and then fire the rule.
Please let me know if there is any other way to do this. Thanks!