# Duplication in Explorer of CMMN model elements

**URL:** <https://forums.visual-paradigm.com/t/duplication-in-explorer-of-cmmn-model-elements/16177>\
**Category:** Bug Reports\
**Created:** [July 2, 2020, 2:01am UTC](https://forums.visual-paradigm.com/t/duplication-in-explorer-of-cmmn-model-elements/16177 "2020-07-02T02:01:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AJD](https://avatars.discourse-cdn.com/v2/letter/a/a9adbd/32.png) [@AJD](https://forums.visual-paradigm.com/u/AJD)\
**Post date:** [July 2, 2020, 2:01am UTC](https://forums.visual-paradigm.com/t/duplication-in-explorer-of-cmmn-model-elements/16177/1 "2020-07-02T02:01:47Z")

</div>

I am creating a CMMN model. Each time I create a Case File Model, it appears twice in the Model Explorer tree. Once just as a ‘Case Plan Model’ sub-tree and then again as a ‘Case’. The sub-elements are thus shown twice. If I try to delete one of these trees, the other tree also is deleted.

I have attached an image that shows the inconsistency with two trees duplicated, expanded. This is a very simple example with only three elements!

How can I clean this up so there is a single representation?

 ![Annotation 2020-07-02 115706](https://forums.visual-paradigm.com/uploads/default/original/2X/9/9baa64e8f9df406bb759e83447b708e487571ebe.png)

---

<div class="post-metadata">

**Author:** ![roykeung](https://forums.visual-paradigm.com/user_avatar/forums.visual-paradigm.com/roykeung/32/2313_2.png) [@roykeung](https://forums.visual-paradigm.com/u/roykeung)\
**Post date:** [July 3, 2020, 8:57am UTC](https://forums.visual-paradigm.com/t/duplication-in-explorer-of-cmmn-model-elements/16177/2 "2020-07-03T08:57:18Z")

</div>

Hi AJD,

According to CMMN spec, each PlanItem need to have one PlanItemDefinition.  
Green one is PlanItem, Orange one is PlanItemDefinition.

 ![Screenshot](https://forums.visual-paradigm.com/uploads/default/original/2X/4/408b48b79f8ef6a54d8511a5f5a62aaea45cd05e.png)

By default we will synchronize PlanItem with PlanItemDefinition.  
However, you can turn off if you want.

 ![Screenshot2](https://forums.visual-paradigm.com/uploads/default/original/2X/1/1359af783b1da381d83ccbbf877db0052447ff15.png)

Best Regards,

Roy.

---

<div class="post-metadata">

**Author:** ![AJD](https://avatars.discourse-cdn.com/v2/letter/a/a9adbd/32.png) [@AJD](https://forums.visual-paradigm.com/u/AJD)\
**Post date:** [July 3, 2020, 8:07pm UTC](https://forums.visual-paradigm.com/t/duplication-in-explorer-of-cmmn-model-elements/16177/3 "2020-07-03T20:07:04Z")

</div>

Roy,

In the diagram, the PlanItem has **two** green entries, and the PlanItemDefinition has **two** orange entries. Also the CasePlanItem has **two** green entries (I did not set up a Definition for this).

Thanks,

Alan

---

<div class="post-metadata">

**Author:** ![antony](https://forums.visual-paradigm.com/user_avatar/forums.visual-paradigm.com/antony/32/2411_2.png) [@antony](https://forums.visual-paradigm.com/u/antony)\
**Post date:** [July 4, 2020, 4:01pm UTC](https://forums.visual-paradigm.com/t/duplication-in-explorer-of-cmmn-model-elements/16177/4 "2020-07-04T16:01:34Z")

</div>

Hi Alan,

We confirmed that the problem is repeatable. It looks like when a CMMN diagram is sub-diagram of a Package, after a Case is created in the diagram, the Case Plan Model will become child of the Package. This does not happen when replace Package with a Model, so it is likely a bug. We will check what caused this issue and we will get back to you once this issue has been fixed.

Best Regards,

Antony.
