AnsweredAssumed Answered

Business Rule Task

Question asked by sandhya.m on Oct 7, 2011
Latest reply on Apr 3, 2012 by hamed
Hi Guys,
Can any one tell why this error is coming when iam trying to run a drl…through a bpnm20.xml

error:
org.activiti.engine.ActivitiException: deployment 20601 doesn't contain any rules

Java code:
              ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine();
              RepositoryService repositoryService = processEngine.getRepositoryService();
         RuntimeService runtimeService = processEngine.getRuntimeService();
      repositoryService.createDeployment()
      .addClasspathResource("rulesdemo.bpmn20.xml")
      .deploy();
      runtimeService.startProcessInstanceByKey("rulesdemo");


bpnm20.xml:
  <businessRuleTask completionQuantity="1" activiti:rules="demo" id="sid-A917D25A-C3B1-4A83-BB01-FAB530A4CF1E" implementation="other" isForCompensation="false" name="businessRuleTask&#10;" startQuantity="1">

rule:

rule "demo"
when
then
System.out.println("HELLO");
end


Regards,
Sandhya

Outcomes