input object on dmn

263 views
Skip to first unread message

Ivan Cordon

unread,
Mar 7, 2022, 2:09:10 PM3/7/22
to kogito-de...@googlegroups.com
Hi group

I'm testing Kogito for a new insurance project. Using only dmn rules it was right at first time.
The problem came when I used dmn into a bpm process. I get again and again consent not found on node Order ->  "org.jbpm.workflow.instance.WorkflowRuntimeException: [myprocess:b9849836-7193-4e1f-ab8c-046e40bf08b0 - Task:1] -- DMN result errors:: Message [id=0, level=ERROR, path=null, line=24, column=-1
   text=DMN: Required dependency 'Consent' not found on node 'Order' (DMN id: _6FCDD209-2B29-48AF-B116-E9D84582F6DB, The referenced node was not found) ]"

image.png


image.png

I went through all the examples and put a service class to capture the input to check the input order object, but I couldn't get any further. This is the example I'm testing:





If anyone could help me, I would greatly appreciate it.

Thanks

Matteo Mortari

unread,
Mar 7, 2022, 3:13:11 PM3/7/22
to Kogito development mailing list
Hi Ivan,

> Using only dmn rules it was right at first time.
> The problem came when I used dmn into a bpm process.

it is likely in your Data I/O of bpmn2 process of task "Generate Consent" you are missing to provide from the process, an Input valorization to the "Consent" inputdata of the DMN model.

I tried to look into your shared git repo to confirm it myself, but I couldn't find any .bpmn2 files.

Hope this helps,
MM

--
You received this message because you are subscribed to the Google Groups "Kogito development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kogito-developm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kogito-development/CA%2BksFCyf1%2BJixaM6oRQ8uUhkGpBpUCwjKNSdP3qOD-_w%2BWb9DQ%40mail.gmail.com.


--

Ivan Cordon

unread,
Mar 7, 2022, 3:23:46 PM3/7/22
to kogito-de...@googlegroups.com
My mistake. I just uploaded them

Regards

Matteo Mortari

unread,
Mar 7, 2022, 3:31:47 PM3/7/22
to Kogito development mailing list
image.png

according to the screenshot of the DMN model in your original email,
in the BPMN process,
the Name must respect the node in the DMN hence shall be capitalized,

eg: you need to Data Inputs : 
Name = Consent [with capital C, this is the name in the target DMN model]

Data Outputs
Name = Order [with capital O, this is the name in the target DMN model]

please notice the DMN model has no notion of Java classes but uses ItemDefinition, so on Kogito, the Data Type of the output will always be a Map.
The feature that automatically coerce to Pojo inside of the jBPM engine is available AFAIK only on jBPM v7, not Kogito.
But my colleagues from Process squad can advise better than me, also in light of the "Kogito incubation API" work

Hope this helps,
MM

Ivan Cordon

unread,
Mar 7, 2022, 3:40:33 PM3/7/22
to kogito-de...@googlegroups.com
Many thanks Mateo.

Was that. I spent a couple of hours (or more) with it. I remembered that advice! :D

Regards



Reply all
Reply to author
Forward
0 new messages