Uploaded image for project: 'AppFormer'
  1. AppFormer
  2. AF-2080

The method defined in a parent data object class is not visible when editing guided decision table.

XMLWordPrintable

    • 2019 Week 26-28
    • 3
    • Hide

      1. create a data object BaseClass in a project through decision central. create a method, for exampe, baseClassMethod, in this data object.

      2. create another data object ChildClass and set its super class as the BaseClass created in step #1, create a method, for example, childClassMethod, in this data object.

      3. add a guided decision table
      a. under Columns, click Insert Column. select "Add a Condition". The 2nd step is "Pattern". select the ChildClass created in step 2. Then follow the wizard to complete the process to add a condition column.
      b. again under Columns, click Insert Column
      c. check "Include advanced options". and select "Add an Action BRL fragment"
      d. in the step of "Rule Modeller". click the "+" at the right of the "THEN"
      e. select "Call method on ChildClass". ok
      f. it shows "Call ChildClass" under "THEN". click on the little green "->"
      g. open the drop down list "choose a method to invoke". you should only see the method "childClassMethod" created in step #2. The method "baseClassMethod" created in the BaseClass is expected to be available here but it's not.

      Show
      1. create a data object BaseClass in a project through decision central. create a method, for exampe, baseClassMethod, in this data object. 2. create another data object ChildClass and set its super class as the BaseClass created in step #1, create a method, for example, childClassMethod, in this data object. 3. add a guided decision table a. under Columns, click Insert Column. select "Add a Condition". The 2nd step is "Pattern". select the ChildClass created in step 2. Then follow the wizard to complete the process to add a condition column. b. again under Columns, click Insert Column c. check "Include advanced options". and select "Add an Action BRL fragment" d. in the step of "Rule Modeller". click the "+" at the right of the "THEN" e. select "Call method on ChildClass". ok f. it shows "Call ChildClass" under "THEN". click on the little green "->" g. open the drop down list "choose a method to invoke". you should only see the method "childClassMethod" created in step #2. The method "baseClassMethod" created in the BaseClass is expected to be available here but it's not.
    • NEW
    • NEW

      If a data object extends a base class, the methods defined in the base class are not visible when editing a guided decision table which references the data object.

      Acceptance test

      • Parent class - public - visible
      • Parent class - protected - visible according javadoc in PR, I guess it is fine
      • Parent class - private - not visible
      • Child class - public - visible
      • Child class - protected - visible according javadoc in PR, I guess it is fine
      • Child class - private - not visible

      jomarko@redhat.com The old implementation used to only handle public methods so I think we're fine too (excluding protected methods).

            manstis@redhat.com Michael Anstis
            manstis@redhat.com Michael Anstis
            Jozef Marko Jozef Marko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: