<commit_before>camunda-engine-dmn
==================

<p>
  <a href="http://camunda.org/">Home</a> |
  <a href="http://camunda.org/community/forum.html">Forum</a> |
  <a href="https://app.camunda.com/jira/browse/CAM">Issues</a> |
  <a href="LICENSE">License</a>
</p>

**WARNING**: This repository is **work in progress** and there will be **force** pushes.<commit_msg>doc(README): add standalone use example<commit_after>Camunda DMN Engine
==================

Lightweight Execution Engine for DMN (Decision Model and Notation) written in Java.

<p>
  <a href="http://camunda.org/">Home</a> |
  <a href="http://camunda.org/community/forum.html">Forum</a> |
  <a href="https://app.camunda.com/jira/browse/CAM">Issues</a> |
  <a href="LICENSE">License</a>
</p>

The Decision Engine can be used seamlessly in combination with BPMN and CMMN or standalone.

## Usage with BPMN

## Standalone Usage

Add the following Maven Coordinates to your project:

```xml
<dependency>
  <groupId>org.camunda.bpm.dmn</groupId>
  <artifactId>camunda-scriptengine-dmn</artifactId>
  <version>${version.camunda}</versions>
</dependency>
```

Now you can use the DMN engine inside your Java Code:

```java
public class DmnApp {

  public static void main(String[] args) {

    // configure the engine
    DmnEngine dmnEngine = new DmnEngineConfigurationImpl().buildEngine();
    // parse a decision
    DmnDecision decision = dmnEngine.parseDecision("checkOrder.dmn");

    Map<String, Object> data = new HashMap<String, Object>();
    data.put("status", "gold");
    data.put("sum", 354.12d);

    // evaluate a decision
    DmnDecisionResult result = dmnEngine.evaluate(decision, data);
  }

}
```

{'fraction_non_alphanumeric': 0.17531305903398928, 'fraction_numerical': 0.0029815146094215863, 'mean_word_length': 4.412903225806452, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 33, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4399062', 'n_tokens_mistral': 585, 'n_tokens_neox': 546, 'n_words': 136}