Search in sources :

Example 21 with Decision

use of org.camunda.bpm.model.dmn.instance.Decision in project camunda-dmn-model by camunda.

the class GenerateIdTest method shouldGenerateIdsOnCreate.

@Test
public void shouldGenerateIdsOnCreate() {
    DmnModelInstance modelInstance = Dmn.createEmptyModel();
    Definitions definitions = modelInstance.newInstance(Definitions.class);
    assertThat(definitions.getId()).isNotNull();
    Decision decision = modelInstance.newInstance(Decision.class);
    assertThat(decision.getId()).isNotNull();
    DecisionTable decisionTable = modelInstance.newInstance(DecisionTable.class);
    assertThat(decisionTable.getId()).isNotNull();
    Output output = modelInstance.newInstance(Output.class);
    assertThat(output.getId()).isNotNull();
}
Also used : DecisionTable(org.camunda.bpm.model.dmn.instance.DecisionTable) Definitions(org.camunda.bpm.model.dmn.instance.Definitions) Output(org.camunda.bpm.model.dmn.instance.Output) Decision(org.camunda.bpm.model.dmn.instance.Decision) Test(org.junit.Test)

Aggregations

Decision (org.camunda.bpm.model.dmn.instance.Decision)21 DecisionTable (org.camunda.bpm.model.dmn.instance.DecisionTable)11 Definitions (org.camunda.bpm.model.dmn.instance.Definitions)11 Test (org.junit.Test)11 Output (org.camunda.bpm.model.dmn.instance.Output)9 DmnDecision (org.camunda.bpm.dmn.engine.DmnDecision)7 Input (org.camunda.bpm.model.dmn.instance.Input)7 InputExpression (org.camunda.bpm.model.dmn.instance.InputExpression)7 Rule (org.camunda.bpm.model.dmn.instance.Rule)7 InputEntry (org.camunda.bpm.model.dmn.instance.InputEntry)6 ArrayList (java.util.ArrayList)5 InputValues (org.camunda.bpm.model.dmn.instance.InputValues)5 OutputEntry (org.camunda.bpm.model.dmn.instance.OutputEntry)5 OutputValues (org.camunda.bpm.model.dmn.instance.OutputValues)5 DmnModelInstance (org.camunda.bpm.model.dmn.DmnModelInstance)4 Text (org.camunda.bpm.model.dmn.instance.Text)4 DmnDecisionImpl (org.camunda.bpm.dmn.engine.impl.DmnDecisionImpl)3 DrgElement (org.camunda.bpm.model.dmn.instance.DrgElement)3 BusinessContextElement (org.camunda.bpm.model.dmn.instance.BusinessContextElement)2 ElementCollection (org.camunda.bpm.model.dmn.instance.ElementCollection)2