DMN Built In Functions
The DMN Specification defines many built in functions to promote interoperability. Enterprise Architect implements these functions flexibly, through the customizable DMN Library Template. 
·	Access:
·	DMN Expression View | Simulation Button Menu on Toolbar | Edit DMN Library
DMN Simulation View | Simulation Button Menu on Toolbar | Edit DMN Library
Ribbon | Code | Configure | Code Template Editor | Language: DMN_JavaScript | DMNSim Library
·	In this Package, we have defined two Business Knowledge Models (BKMs) implemented as 'Context' in Boxed notation. Each Context Entry defines a test case for the built in function. 

·	The first BKM tests built in functions in the 'boolean, number, string' domain and the second BKM tests built in functions for lists.

Simulation
These BKMs do not define any parameters. Evaluate each built in function through a context entry, whose expression calls the functions defined in the DMN Library and assigns the result to a variable.
Click the 'Simulation' button on the toolbar; the runtime result will be retrieved and rendered on the variables.

·	Tips: In order to support more built in functions, you can customize the DMN Library template and simply use the function in Expressions of the model

Note: For functions with "list index" or "position" types of parameter, the values start from 0. For example, sublist(['a','b','c'], 1, 2) returns a list, starting with list[1] up to but not including list[2], which is ['b']. Similar functions currently include "sublist", "insert before", "remove" and "index of".