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

Drools declared types cannot be references in jBPM Drools expressions due to compilation order.

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 6.4.0.Final
    • Fix Version/s: 7.0.0.Beta3
    • Component/s: core engine
    • Labels:
      None
    • Environment:

      JBoss BPM Suite 6.3.3.GA

    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      When you declare a type in a DRL using the "declare" syntax, that type cannot be referenced by Drools LHS expressions in a Sequence Flow (for example in the context of an X-OR Gateway). The DRL and BPMN2 file are in the same project.

      The problem is the order of compilation of CompositeKnowledgeBuilderImpl. The builder compiles the process definitions before the DRLs, which results in a situation where the declared types used in the process are not yet available in the Drools ProjectClassloader when. the process is compiled.

      Easy fix is to compile the process after the rules, which makes sense as the rules will normally not really on processes, but processes can really on rules.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  mfusco Mario Fusco
                  Reporter:
                  McCloud Duncan Doyle
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: