Author Topic: Accessing Rule Composer information  (Read 2462 times)

stevesavage

  • EA User
  • **
  • Posts: 119
  • Karma: +4/-0
    • View Profile
Accessing Rule Composer information
« on: January 14, 2013, 06:22:46 am »
I've started making heavy use of the Business Rule composer
http://www.sparxsystems.com/enterprise_architect_user_guide/modeling_languages/compose_business_rules.html

But I haven't found a way to access the Decision Table information through the API.

The information seems to be stored in:
t_document as a binary blob, DocType "DTree_RuleSet"

I have got a kludge for read access to the data using the RTF generator which can read the values, to generate a XML structure that I then read in and parse.

I haven't got a solution on how to write to the decison table.

Anyone have suggestions/code for read/write access to the decision table?

Reasons for read access: so I can use the document generator, document frament (based on a script) or directly write RTF code to make an actual table for the rules v.s. the current list that the RTF generator supports.  (condition and allowed values along the left, columns for each combinnation and result.

condition 1   value 1 | X |
                   value 2 | X | X
condition 2   value 3 |    | X
                   value 4 | X | X
                               | P | F

Where value 1 and 2 are the allowed values for condition 1
and values 3 and 4 are the allowed values for condition 2

Reasons for write access: have a lot of existing tables created for unit tests that I'd like to import in for change management and traceability.