Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-2290

Create a Rules (jbpm) quick start

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 8.4
    • Component/s: Build/Kits
    • Labels:
      None

      Description

      Rules integration!

      Calling rules from within virtual procedure or transformation:
      Logical flow something like this:

      For each row
      convert row to array or other form that can be easily passed to
      user-defined function (UDF)
      custom UDF implementation accepts array/vararg params and converts
      to pojo
      UDF injects pojo to knowledge session
      rules (potentially) modify pojo
      UDF converts pojo back to array and returns to Teiid
      procedure/transformation converts array back to record/row
      modified values available to procedure/transformation logic
      End

      Assumptions:
      1. UDF is not adding or removing columns/fields
      2. UDF is not changing the datatypes of columns/fields
      3. overhead of starting knowledge session for each record/row is
      prohibitive. Need a stateful/persistent knowledge session. This may
      mean a rules service of some kind, preferably in-process.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  van.halbert Van Halbert
                  Reporter:
                  van.halbert Van Halbert
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: