500 error thrown for get case diagram for model created in camunda modeler

I have created a model in camunda with human tasks , sentry association.While trying to getCasediagram from get Case Diagram API 500 error is thrown. But the same model created in flowable giving proper result as shown in the below diagram shared.

The root cause of the issue observed is the cmmnedge(representing association in diagram)* sourceref* refers to the planitemonpart of the sentry item but it should refer to the planitem i.e Task A.

XML for reference:

<cmmn:sentry id=“Sentry_0jkhrul”>
<cmmn:planItemOnPart id=“PlanItemOnPart_02z11ee” sourceRef=“PlanItem_1yzo2uy”>
cmmn:standardEventcomplete</cmmn:standardEvent>
</cmmn:planItemOnPart>
</cmmn:sentry>

<cmmndi:CMMNEdge id=“PlanItemOnPart_02z11ee_di” cmmnElementRef=“PlanItemOnPart_02z11ee” targetCMMNElementRef=“EntryCriterion_1575hid” isStandardEventVisible=“true”>

cmmndi:CMMNLabel</cmmndi:CMMNLabel>
</cmmndi:CMMNEdge>

Please let me know if you need more information

1 Like

Can anyone have idea on the issue/topic shared. Please reply at the earliest
Thank you