- Chapter 5.4.5 – PlanItem, table 19, page 36: „entryCriteriaRefs“ („exitCriteriaRefs“): „EntryCriteriaRefs of a PlanItem must refer to Sentries that are contained by the Stage or PlanFragment that contains that PlanItem.”
- Chapter 5.4.6.3 – PlanItemOnPart, table 23, page 39: “sourceRef”: „SourceRef represents a PlanItem that must be contained by the same PlanFragment (or Stage) that also contains the Sentry that contains the PlanItemFragment.”
That means that the sentry declaration must be contained by the stage. So if just move the sentry element into the stage, then it should work.
There is another "problem" with your model (ie. milestone-inside-stage.cmmn10.xml): It is not allowed to have plan item definitions (like human task etc.) inside the stage. The plan item definitions must be declared "top level" inside the case plan model.
Does it help you?
Cheers,
Roman
A stage can have an entry criterion and an exit criterion. I guess the entry criterion sentry should be defined outside the stage as it can only be connected to an element outside.
How about the exit criterion. Can the stage be terminated from inside and outside with the exit criterion? And where should the exit criterion sentry be defined?