Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-2278

Not able to resolve dependencies if I use kie.maven.offline.force=true while starting server

    XMLWordPrintable

Details

    • CR1
    • +
    • Hide

      1. Start RHDM/RHPAM with -Dkie.maven.offline.force=true option.
      2. Create project1 in business-central console which has only Data Object.
      3. Build and deploy Project1, check artifact repository project1.jar is available there.
      4. Create another Project2 and add dependencies of Project1.
      5. In Project2, create rule like as:

      package com.demo;
      import com.Person;
      rule "Rule" 
      when     
       person : Person(name == "abc") 	
      then  
       System.out.println(" Rule executed ");
      end
      

      6. Try to validate rule, it will fail.

      Show
      1. Start RHDM/RHPAM with -Dkie.maven.offline.force=true option. 2. Create project1 in business-central console which has only Data Object. 3. Build and deploy Project1, check artifact repository project1.jar is available there. 4. Create another Project2 and add dependencies of Project1. 5. In Project2, create rule like as: package com.demo; import com.Person; rule "Rule" when person : Person(name == "abc" ) then System .out.println( " Rule executed " ); end 6. Try to validate rule, it will fail.
    • 2019 Week 32-34

    Description

      Created two projects in business-central console, project1 has only data objects and project2 has only DRL files. Dependency of project1 is added on Project2. But DRL validation fails as data objects are not resolved.

      13:04:47,251 ERROR [org.drools.compiler.kie.builder.impl.KieProject] (default task-5) Unable to build KieBaseModel:defaultKieBase
      Unable to resolve ObjectType 'Person' : [Rule name='Rule']
      
      Rule Compilation error : [Rule name='Rule']
      	com/demo/Rule_Rule816332580.java (2:43) : Only a type can be imported. com.Person resolves to a package
      
      Error importing : 'com.Person
      

      Attachments

        Issue Links

          Activity

            People

              rhn-support-wsiqueir William Siqueira
              rhn-support-abhumbe Abhijit Humbe
              Dominik Hanak Dominik Hanak
              Dominik Hanak Dominik Hanak
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: