Java Code Examples for org.camunda.bpm.engine.DecisionService#evaluateDecisionTableByKey()
The following examples show how to use
org.camunda.bpm.engine.DecisionService#evaluateDecisionTableByKey() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: OSGiDmnIntegrationTest.java From camunda-bpm-platform-osgi with Apache License 2.0 | 5 votes |
@Test public void shouldUseTheDmnTable(){ DecisionService decisionService = processEngine.getDecisionService(); VariableMap variableMap = Variables.createVariables().putValue("season", "Spring").putValue("guestCount", 10); DmnDecisionTableResult dishDecision = decisionService.evaluateDecisionTableByKey("dish", variableMap); String dish = dishDecision.getSingleEntry(); assertThat(dish, is(equalTo("Stew"))); }
Example 2
Source File: DecisionServiceDelegate.java From camunda-bpm-platform with Apache License 2.0 | 4 votes |
protected DmnDecisionTableResult evaluateDecision(DecisionService decisionService, VariableScope variableScope) { return decisionService.evaluateDecisionTableByKey("testDecision", variableScope.getVariables()); }
Example 3
Source File: EvaluateDecisionTableStep.java From camunda-bpm-platform with Apache License 2.0 | 4 votes |
@Override public void execute(PerfTestRunContext context) { DecisionService decisionService = processEngine.getDecisionService(); decisionService.evaluateDecisionTableByKey(decisionDefinitionKey, variables); }