Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-245

Drools sees a type as a package

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 5.5.0.Final
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      The short version is
      1. Generate an Axis2 Service Project (WSO2).
      2. Have Drools reason over de generated types.

      The longer version involves cranking up the WSO2 BRS, which I rather not describe textually. I'd happily send some screendumps, projects etc. upon request.

      Show
      The short version is 1. Generate an Axis2 Service Project (WSO2). 2. Have Drools reason over de generated types. The longer version involves cranking up the WSO2 BRS, which I rather not describe textually. I'd happily send some screendumps, projects etc. upon request.

      Description

      Hi,

      I want Drools to reason over an axis2 type, but the Drools compiler sees the type as a package, see error message below.

      Strictly speaking, the Drools compiler may be right. The type "Client" encapsulates a "Factory" class, making hierarchically speaking the class "Client" a package.

      Although I'm fairly new to Drools, I'm pretty sure that the behavior I'm experiencing is not right. The Drools version used in the WSO2BRS-2.0.0 is able to reason over the very same axis2 types.

      Error importing : 'nl.domain.www.schema.Client'
      Rule Compilation error : [Rule name='Your First Rule']
      io31/Rule_Your_First_Rule_16db2a632a4b4efd96dde4c6d6a55cdf.java (2:57) : Only a type can be imported.

      nl.domain.www.schema.Client resolves to a package

        Attachments

          Activity

            People

            Assignee:
            psiroky Petr Široký (Inactive)
            Reporter:
            gegtot georg tornqvist (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: