[
https://issues.jboss.org/browse/TEIID-2290?page=com.atlassian.jira.plugin...
]
RH Bugzilla Integration commented on TEIID-2290:
------------------------------------------------
belong(a)redhat.com made a comment on [bug
874738|https://bugzilla.redhat.com/show_bug.cgi?id=874738]
I believe this is documented here -
http://documentation-devel.engineering.redhat.com/docs/en-US/Red_Hat_JBos...
Create a Rules (jbpm) quick start
---------------------------------
Key: TEIID-2290
URL:
https://issues.jboss.org/browse/TEIID-2290
Project: Teiid
Issue Type: Task
Components: Build/Kits
Reporter: Van Halbert
Assignee: Van Halbert
Fix For: 8.4
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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira