<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic unable to execute rule engine in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/unable-to-execute-rule-engine/m-p/56751#M34373</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have been trying to integrate Activiti with Drools, followed the approach what has been described in sample applications. But I couldn't get succeed, the rule is supposed to be fired for my test case, which is not happening. Can someone have quick glance and help me on this? I have spent almost a day on this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Trivedi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;P.S: The project is attached here for your reference.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jun 2011 18:03:02 GMT</pubDate>
    <dc:creator>trivedi</dc:creator>
    <dc:date>2011-06-27T18:03:02Z</dc:date>
    <item>
      <title>unable to execute rule engine</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/unable-to-execute-rule-engine/m-p/56751#M34373</link>
      <description>Hi All,I have been trying to integrate Activiti with Drools, followed the approach what has been described in sample applications. But I couldn't get succeed, the rule is supposed to be fired for my test case, which is not happening. Can someone have quick glance and help me on this? I have spent al</description>
      <pubDate>Mon, 27 Jun 2011 18:03:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/unable-to-execute-rule-engine/m-p/56751#M34373</guid>
      <dc:creator>trivedi</dc:creator>
      <dc:date>2011-06-27T18:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: unable to execute rule engine</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/unable-to-execute-rule-engine/m-p/56752#M34374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried to run your unittest (testDroolsPath) and it runs fine, console output:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;Jun 28, 2011 9:39:59 AM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions&lt;BR /&gt;INFO: Loading XML bean definitions from class path resource [activiti.cfg.xml]&lt;BR /&gt;Jun 28, 2011 9:40:00 AM org.activiti.engine.impl.db.DbSqlSession executeSchemaResource&lt;BR /&gt;INFO: performing create on engine with resource org/activiti/db/create/activiti.h2.create.engine.sql&lt;BR /&gt;Jun 28, 2011 9:40:00 AM org.activiti.engine.impl.db.DbSqlSession executeSchemaResource&lt;BR /&gt;INFO: performing create on history with resource org/activiti/db/create/activiti.h2.create.history.sql&lt;BR /&gt;Jun 28, 2011 9:40:00 AM org.activiti.engine.impl.db.DbSqlSession executeSchemaResource&lt;BR /&gt;INFO: performing create on identity with resource org/activiti/db/create/activiti.h2.create.identity.sql&lt;BR /&gt;Jun 28, 2011 9:40:00 AM org.activiti.engine.impl.ProcessEngineImpl &amp;lt;init&amp;gt;&lt;BR /&gt;INFO: ProcessEngine default created&lt;BR /&gt;Jun 28, 2011 9:40:00 AM org.activiti.engine.impl.bpmn.deployer.BpmnDeployer deploy&lt;BR /&gt;INFO: Processing resource rejectionRules.drl&lt;BR /&gt;Jun 28, 2011 9:40:00 AM org.activiti.engine.impl.bpmn.deployer.BpmnDeployer deploy&lt;BR /&gt;INFO: Processing resource diagrams/InpatientReferral.bpmn20.xml&lt;BR /&gt;Jun 28, 2011 9:40:00 AM org.activiti.engine.impl.bpmn.parser.BpmnParse parseDefinitionsAttributes&lt;BR /&gt;INFO: XMLSchema currently not supported as typeLanguage&lt;BR /&gt;Jun 28, 2011 9:40:00 AM org.activiti.engine.impl.bpmn.parser.BpmnParse parseDefinitionsAttributes&lt;BR /&gt;INFO: XPath currently not supported as expressionLanguage&lt;BR /&gt;Jun 28, 2011 9:40:01 AM org.activiti.engine.impl.rules.RulesDeployer deploy&lt;BR /&gt;INFO: Processing resource rejectionRules.drl&lt;BR /&gt;Jun 28, 2011 9:40:03 AM org.activiti.engine.impl.rules.RulesDeployer deploy&lt;BR /&gt;INFO: Processing resource diagrams/InpatientReferral.bpmn20.xml&lt;BR /&gt;Starting Inpatient Referall process…..&lt;BR /&gt;com.gehcit.hsis.test.PatientDto@75157f77&lt;BR /&gt;Referral document is rejected&lt;BR /&gt;Started process instance id 6&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 07:41:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/unable-to-execute-rule-engine/m-p/56752#M34374</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-06-28T07:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: unable to execute rule engine</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/unable-to-execute-rule-engine/m-p/56753#M34375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi ,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The test case runs well without any errors. But, it is supposed to execute the rule file, which is not happening. Just in case if it executes, then flow should end up with "MMA Referral Task" instead it is going to "Reject Document" node. One thing for sure is that the rule is not getting fired &lt;/SPAN&gt;&lt;EM&gt;.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Trivedi&lt;/EM&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 07:55:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/unable-to-execute-rule-engine/m-p/56753#M34375</guid>
      <dc:creator>trivedi</dc:creator>
      <dc:date>2011-06-28T07:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: unable to execute rule engine</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/unable-to-execute-rule-engine/m-p/56754#M34376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Aha, normally unit-tests we get fail to show what's wrong &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I see the rules-deployer kicking in, so the rules are picked up and the rule is present in the KnowledgeBase… But I think you should specify a rules-input if I'm not mistaken, you can't just use the variables of the executions by name.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 09:22:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/unable-to-execute-rule-engine/m-p/56754#M34376</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-06-28T09:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: unable to execute rule engine</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/unable-to-execute-rule-engine/m-p/56755#M34377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't think unit tests are capable of giving enough details about what is going wrong here. Is there a way i can increase the log level and see if something comes out? Also could you please elaborate on "specifying rules-input", I couldn't followed you that suggestion. I am a beginner in working on BPM tools.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Trivedi&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 10:07:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/unable-to-execute-rule-engine/m-p/56755#M34377</guid>
      <dc:creator>trivedi</dc:creator>
      <dc:date>2011-06-28T10:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: unable to execute rule engine</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/unable-to-execute-rule-engine/m-p/56756#M34378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A unit-test could at least show me what output should be (like you said in the post after "flow should end up with "MMA Referral Task").&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Everything you use in your in your business-rule task should be passed as input-variable (eg. order):&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;businessRuleTask id="ruleTask" activiti:ruleVariablesInput="${order}" activiti:resultVariable="rulesOutput"/&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;CODE&gt;&lt;BR /&gt;package org.activiti.rules.deploytest;&lt;BR /&gt; &lt;BR /&gt;import org.activiti.standalone.rules.Order&lt;BR /&gt; &lt;BR /&gt;rule "OrderItemCountZeroOrLess"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; when&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; order : Order( itemCount &amp;lt;= 0)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; order.setValid(false);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;end&lt;BR /&gt; &lt;BR /&gt;rule "OrderItemCountGreaterThanZero"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; when&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; order : Order( itemCount &amp;gt; 0)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; order.setValid(true);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;end&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 10:47:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/unable-to-execute-rule-engine/m-p/56756#M34378</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-06-28T10:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: unable to execute rule engine</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/unable-to-execute-rule-engine/m-p/56757#M34379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I really appreciate for your quick responses here. However, I tried your option in my example, it didn't worked. Were you able to get it working in sample that I attached? if so, please upload that sample that would helps me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Trivedi&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 11:12:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/unable-to-execute-rule-engine/m-p/56757#M34379</guid>
      <dc:creator>trivedi</dc:creator>
      <dc:date>2011-06-28T11:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: unable to execute rule engine</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/unable-to-execute-rule-engine/m-p/56758#M34380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could someone help me on this? or provide me some guidance on this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Trivedi&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 07:10:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/unable-to-execute-rule-engine/m-p/56758#M34380</guid>
      <dc:creator>trivedi</dc:creator>
      <dc:date>2011-06-29T07:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: unable to execute rule engine</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/unable-to-execute-rule-engine/m-p/56759#M34381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just change the businessRuleTask definition to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;businessRuleTask id="businessruletask1" name="Eligible Service" activiti:ruleVariablesInput="${patientDto}"&amp;gt;&amp;lt;/businessRuleTask&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then the rules are executed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2011 06:40:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/unable-to-execute-rule-engine/m-p/56759#M34381</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2011-07-01T06:40:15Z</dc:date>
    </item>
  </channel>
</rss>

