Refer to a decision in another dmn file

Suppose we have this structure in a dmn file, named as dmn1.xml

<decision name="decision1">

<informationRequirement>
<requiredDecision href="http://www.example.org/dmn2.xml#decision2"/>
</informationRequirement>

</decision>

and have another dmn2.xml, which can be referenced through a HTTP url, http://www.example.org/dmn2.xml

<decision name="decision2">
</decision>

I have omitted decision logic section for these decisions for the sake of brevity.

Given this scenario, we are not able to import decision2 into decision1, though it is a valid use case as explained in section 12.3.2 of DMN specification.

We get an error, org.camunda.bpm.dmn.engine.impl.transform.DmnTransformException: DMN-02004 Error while transforming decisions: Unable to find a model element instance for id decision2

Hi @sid_gaur,

currently, the DMN engine doesn’t support references from other files.
You could use a BPMN process which evaluates the decision “decision2” first and then passes the result to the other decision.

Does this help you?

Best regards,
Philipp

Thanks Phillipp. This was helpful.