public void execute(JobExecutionContext context) throws JobExecutionException {
String modelName = (String) context.getJobDetail().getJobDataMap().get(JOB_DATA_RULEMODEL);
String ruleName = (String) context.getJobDetail().getJobDataMap().get(JOB_DATA_RULENAME);
ModelRepository modelRepository = RuleModelActivator.modelRepositoryTracker.getService();
ScriptEngine scriptEngine = RuleModelActivator.scriptEngineTracker.getService();
if(modelRepository!=null && scriptEngine!=null) {
EObject model = modelRepository.getModel(modelName);
if (model instanceof RuleModel) {
RuleModel ruleModel = (RuleModel) model;
Rule rule = getRule(ruleModel, ruleName);
if(rule!=null) {
Script script = scriptEngine.newScriptFromXExpression(rule.getScript());