Tuesday, 31 May 2022 10:09

Integrating Decision Tables and Executable State Machines

Written by
Rate this item
(4 votes)

Integrating Decision Tables and Executable Statemachines

Enterprise Architect provides extensive modelling of decision tables via the DMN 1.2 MDG. Decsion Tables can be used to model business rules of any complexity in a concise and understandable way. These decsion table models can be simulated using mutple input data sets to ttes the business rules. Once tested program code, such as Java, can be generated for use in applications.

Enterprise Architect also provdes modelling and simulation of state machines. State machines model the dynamic behaviour of applications. 

At the recent EA User Group 2022 meeting held in Reading UK, I presented how decision tables can be integrated with state machines to provide a simulated model of the dynamic behaviour invoking business rules. The example used was for the application for a car insuarbnce quotation. The business rules for determining the insurance premium based upon certain inputs were modelled as a decsion table, and the dynamic process of applying for a quotation was modelled using a UML executable state machine. The language used for code generation in both cases was Java.

To supplement this presentation I have created a comprehensive step-by-step tutorial which is far too long to reproduce here, therefore this step-by-step guide is provided as a download.

I hope you find the step-by-step guide a useful aid to using this very useful feature of Enterprise Architect. The example has been implemented and tested in EA v 15.2 and EA v 16.

Phil Chudley

Dunstan Thomas

This email address is being protected from spambots. You need JavaScript enabled to view it.

Read 805 times Last modified on Thursday, 14 July 2022 23:40

Phil Chudley

Dunstan Thomas (Principal Consultant)
I am a Principal Consultant at Dunstan Thomas Consultancy Ltd, Portsmouth, UK. I have been using Enterprise Architect for the last 14 years, and UML even longer than that! I also provide training and consultancy services for organisations using Enterprise Architect.
My main modelling interests are UML, BPMN 2.0, SysML 1.5 and Archimate 3.0 and I am both UML and TOGAF 9.0 certified.
I write extensions for Enterprise Architect especially custom modelling environments using MDG.
I am also an active member of the EAUG and have presented all the London events in addition to Nuremberg, Munich, Zurich, Brussels and Gothenburg.
follow me on Twitter

Login to post comments