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

Functions not recognized

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

    XMLWordPrintable

Details

    • Release Notes
    • ER1
    • ?
    • Hide
      Cause: Using a DRL function in any guided rule.

      Consequence: The rule using function declared in a DRL file cannot be validated successfully.

      Workaround (if any): None.

      Result:
      Show
      Cause: Using a DRL function in any guided rule. Consequence: The rule using function declared in a DRL file cannot be validated successfully. Workaround (if any): None. Result:

    Description

      Description of problem:
      I have a function defined according to documentation [1] and working in Guvnor 5.x. After migrating to Workbench, the function is listed in "Others" section and opens in default editor. Validation is not available. When the function is used in DRL rule I get compiler error upon validation:

      Unable to Analyse Expression System.out.println(hello("Jiri"));: [Error: unable to resolve method using strict-mode: org.drools.core.spi.KnowledgeHelper.hello(java.lang.String)] [Near :

      {... System.out.println(hello("Jiri")); ....}

      ] ^ [Line: 5, Column: 0]

      Version-Release number of selected component (if applicable):
      ER1

      How reproducible:
      -

      Steps to Reproduce:
      1.
      2.
      3.

      Actual results:

      • Missing UI support (Function Editor with validation).
      • Functions not recognized in rules.

      Expected results:
      not( Actual results )

      Additional info:

      Attachments

        Activity

          People

            nmirasch@redhat.com Neus Miras Chueca
            jlocker Jiří Locker
            Archiver:
            rhn-support-ceverson Clark Everson
            Jiri Svitak Jiri Svitak (Inactive)
            Jiri Svitak Jiri Svitak (Inactive)
            etirelli, Jiri Svitak (Inactive), Marek Baluch, Pedro Zapata Fernandez, Toni Rikkola

            Dates

              Created:
              Updated:
              Resolved:
              Archived:

              PagerDuty