Uploaded image for project: 'JBoss BRMS Platform'
  1. JBoss BRMS Platform
  2. RHBRMS-614

Unable to use 'drools' variable in Guided Rules

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 6.0.3
    • Business Central
    • None

      Description of problem:
      As per the documentation
      http://docs.jboss.org/drools/release/6.0.1.Final/drools-docs/html_single/index.html#d0e9051

      drools is predefined variable, similar to kcontext which is available for usage - in RHS for example.

      business-central is able to resolve kcontext but can't resolve drools variable,

      Version-Release number of selected component (if applicable):
      BPMS 6.0.3+rp#2

      How reproducible:
      always

      Steps to Reproduce:
      1. Create Guided Rule with drools variable used in RHS, i.e.:

      1. | import java.lang.Number;
      2. |
      3. | rule "MyGuidedRule"
      4. | dialect "mvel"
      5. | when
      6. | eval( true )
      7. | then
      8. | drools.setFocus( "whatever" );
      9. | end

      2. Save/validate/F5/re-open
      3. Popup with following content is presented:

      "ERROR: Could not find type for variable drools"

      Actual results:
      It is not possible to use drools variable in RHS in Guided Rule

      Expected results:
      It is possible to use drools variable in RHS in Guided Rule

      Additional info:

      The workaround is to use kcontext variable. Unfortunately, that's not possible due to
      https://bugzilla.redhat.com/show_bug.cgi?id=1195241

      So the workaround is to use plain DRL. Please have BZ-1195241 in mind when working on this.

              manstis@redhat.com Michael Anstis
              rhn-support-agiertli Anton Giertli
              Archiver:
              rhn-support-ceverson Clark Everson
              Jiří Locker Jiří Locker (Inactive)
              Jiří Locker Jiří Locker (Inactive)
              etirelli, Kris Verlaenen

                Created:
                Updated:
                Resolved:
                Archived: