Activiti Explorer 5.18: Deployment doesn't contain any rule
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2016 04:32 AM
Hello Team,
I am using Activiti explorer 5.18, Activiti REST 5.18, Eclipse designer 5.18.
I am new to activity and trying to test a business rule task which can call a rule defined in a drl file.
I am able to deploy the bar file and can see the drl file in ACT_GE_BYTEARRAY table.
But when I am trying to start the process I am getting the error "Deployment XX does not contain any rule."
I have just downloaded the Activiti 5.18 and copied the wars( explorer and rest) in tomcat and using it without any changes (h2 database).
I order to deploy the bar file with rule I copied below jar files in "\apache-tomcat-7.0.68\webapps\activiti-explorer\WEB-INF\lib":
drools-compiler-5.4.0.Final.jar
drools-core-5.4.0.Final.jar
knowledge-api-5.4.0.Final.jar
knowledge-internal-api-5.4.0.Final.jar
mvel2-2.1.0.drools16.jar
I have attached my project as a txt , It is actually a .rar file.
I am blocked due to this issue. Requesting you to please help me ASAP.
I am using Activiti explorer 5.18, Activiti REST 5.18, Eclipse designer 5.18.
I am new to activity and trying to test a business rule task which can call a rule defined in a drl file.
I am able to deploy the bar file and can see the drl file in ACT_GE_BYTEARRAY table.
But when I am trying to start the process I am getting the error "Deployment XX does not contain any rule."
I have just downloaded the Activiti 5.18 and copied the wars( explorer and rest) in tomcat and using it without any changes (h2 database).
I order to deploy the bar file with rule I copied below jar files in "\apache-tomcat-7.0.68\webapps\activiti-explorer\WEB-INF\lib":
drools-compiler-5.4.0.Final.jar
drools-core-5.4.0.Final.jar
knowledge-api-5.4.0.Final.jar
knowledge-internal-api-5.4.0.Final.jar
mvel2-2.1.0.drools16.jar
I have attached my project as a txt , It is actually a .rar file.
I am blocked due to this issue. Requesting you to please help me ASAP.
Labels:
- Labels:
-
Archive
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2016 03:57 PM
Can you post the actual rows in your ACT_GE_BYTEARRAY and ACT_RE_DEPLOYMENT tables?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-02-2016 03:39 AM
I am attaching ACT_GE_BYTEARRAY.PNG and ACT_RE_DEPLOYMENT.PNG (as txt file). After deployment 3 new entries added in ACT_GE_BYTEARRAY :
1564 1 ivmsdavedata.bpmn20.xml 1563 [B@177f91fd false
1565 1 agecheckrule.drl 1563 [B@5fa98384 false
1566 1 ivmsdavedata.ivmssave.png 1563 [B@6c0e48ea true
1 new entry in ACT_RE_DEPLOYMENT table:
1563 ivmsdavedata.bar 2016-03-02 13:56:00.986
1564 1 ivmsdavedata.bpmn20.xml 1563 [B@177f91fd false
1565 1 agecheckrule.drl 1563 [B@5fa98384 false
1566 1 ivmsdavedata.ivmssave.png 1563 [B@6c0e48ea true
1 new entry in ACT_RE_DEPLOYMENT table:
1563 ivmsdavedata.bar 2016-03-02 13:56:00.986
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-02-2016 03:51 AM
here is the stacktrace of the error from tomcat console:
Caused by: org.activiti.engine.ActivitiException: deployment 1563 doesn't contai
n any rules
at org.activiti.engine.impl.rules.RulesHelper.findKnowledgeBaseByDeploym
entId(RulesHelper.java:51)
at org.activiti.engine.impl.bpmn.behavior.BusinessRuleTaskActivityBehavi
or.execute(BusinessRuleTaskActivityBehavior.java:48)
at org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityExecute.e
xecute(AtomicOperationActivityExecute.java:60)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(
CommandContext.java:96)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOp
erationSync(ExecutionEntity.java:633)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOp
eration(ExecutionEntity.java:628)
at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyL
istenerStart.eventNotificationsCompleted(AtomicOperationTransitionNotifyListener
Start.java:52)
Caused by: org.activiti.engine.ActivitiException: deployment 1563 doesn't contai
n any rules
at org.activiti.engine.impl.rules.RulesHelper.findKnowledgeBaseByDeploym
entId(RulesHelper.java:51)
at org.activiti.engine.impl.bpmn.behavior.BusinessRuleTaskActivityBehavi
or.execute(BusinessRuleTaskActivityBehavior.java:48)
at org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityExecute.e
xecute(AtomicOperationActivityExecute.java:60)
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(
CommandContext.java:96)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOp
erationSync(ExecutionEntity.java:633)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOp
eration(ExecutionEntity.java:628)
at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyL
istenerStart.eventNotificationsCompleted(AtomicOperationTransitionNotifyListener
Start.java:52)
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-07-2016 04:12 AM
Hmm all of that looks allright.
I read that you are running it in REST. Did you update the configuration such that it actually parses the rules, i.e add the following config to your process engine config:
<code>
<property name="customPostDeployers">
<list>
<bean class="org.activiti.engine.impl.rules.RulesDeployer" />
</list>
</property>
</code>
I read that you are running it in REST. Did you update the configuration such that it actually parses the rules, i.e add the following config to your process engine config:
<code>
<property name="customPostDeployers">
<list>
<bean class="org.activiti.engine.impl.rules.RulesDeployer" />
</list>
</property>
</code>
