HI all
in this Form its mentioned DMN only is not Available DMN API in Camunda 8
is it Available now, if Available how can I implement that
Thank you
HI all
in this Form its mentioned DMN only is not Available DMN API in Camunda 8
is it Available now, if Available how can I implement that
Thank you
No, as of the current version, Camunda 8 does not support DMN API. This feature is planned for future releases.
Out of interest what are you looking to do exactly? Deploy and Run a DMN table? anything else?
Hi @Niall
yes I ma trying to deploy and Run DMN table separately but as per my understanding I cannot do that so I need to integrate with BPMN
That the moment - indeed you’d need to create a BPMN model with a business rules task
In the zeebe engine, there is a grpc endpoint where you can call a decision directly…
Regards
Rob
Hi @Niall @Webcyberrob
then How to call DMN camunda 8 programmatically
Hi
You would need either a grpc client or a zeebe client…
If you want to quickly see it in action, postman has a grpc client you could use to help you get started…
Regards
Rob
Hi
I am using zeebe client, do we have any sample repository related to that
so that using zeebe client to call DMN camunda 8 programmatically
I am getting the result for DMN evaluation as “null”
DMN file
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="https://www.omg.org/spec/DMN/20191111/MODEL/" xmlns:dmndi="https://www.omg.org/spec/DMN/20191111/DMNDI/" xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/" xmlns:modeler="http://camunda.org/schema/modeler/1.0" id="extraction_001" name="extraction" namespace="http://camunda.org/schema/1.0/dmn" exporter="Camunda Modeler" exporterVersion="5.22.0" modeler:executionPlatform="Camunda Cloud" modeler:executionPlatformVersion="8.5.0">
<decision id="Decision_1c7a609" name="extraction">
<decisionTable id="DecisionTable_170xgs7">
<input id="Input_1" label="Jobs">
<inputExpression id="InputExpression_1" typeRef="string">
<text>jobId</text>
</inputExpression>
</input>
<input id="InputClause_0xoktai" label="PvpMode">
<inputExpression id="LiteralExpression_1w9yyaq" typeRef="boolean">
<text>pvpMode</text>
</inputExpression>
</input>
<output id="Output_1" label="WorkFlow" name="WorkFlow" typeRef="string" />
<rule id="DecisionRule_1nzqrl5">
<inputEntry id="UnaryTests_19eit70">
<text>job01</text>
</inputEntry>
<inputEntry id="UnaryTests_0tyky6e">
<text>true</text>
</inputEntry>
<outputEntry id="LiteralExpression_1scz9nd">
<text>automatedWorkflow</text>
</outputEntry>
</rule>
<rule id="DecisionRule_08459s3">
<inputEntry id="UnaryTests_0dxosyp">
<text>job02</text>
</inputEntry>
<inputEntry id="UnaryTests_1915due">
<text>false</text>
</inputEntry>
<outputEntry id="LiteralExpression_07wx0cq">
<text>hitlWorkflow</text>
</outputEntry>
</rule>
<rule id="DecisionRule_16fgkvk">
<inputEntry id="UnaryTests_1fbzwli">
<text>job03</text>
</inputEntry>
<inputEntry id="UnaryTests_146jicp">
<text>true</text>
</inputEntry>
<outputEntry id="LiteralExpression_0oxro3f">
<text>automatedWorkflow</text>
</outputEntry>
</rule>
</decisionTable>
</decision>
<dmndi:DMNDI>
<dmndi:DMNDiagram>
<dmndi:DMNShape dmnElementRef="Decision_1c7a609">
<dc:Bounds height="80" width="180" x="160" y="100" />
</dmndi:DMNShape>
</dmndi:DMNDiagram>
</dmndi:DMNDI>
</definitions>
final EvaluateDecisionResponse decisionEvaluation =
zeebeClient
.newEvaluateDecisionCommand()
.decisionId("Decision_1c7a609")
.variables("{\"jobId\": \"job01\", \"pvpMode\": true}")
.send()
.join();
System.out.println("Decision evaluation result: " + decisionEvaluation.getDecisionOutput());
Help to resolve this issue
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.