I am creating a PERT tool, and adapting this tutorial to my case.
What I want to do is forbidding the creation of relationships, and the creation of properties:
The START node (which is an :EndPoint, not an :Activity) should not have predecessors, only successors
The FINISH node (which is an :EndPoint, not an :Activity) should not have successors, only predecessors
No CYCLE allowed
- Each :Activity directly preceding by START cannot have other activities as predecessors
- Each :Activity (in+)directly predecessor of a activities cannot have these activities as predecessors.
I have not found a way to block these relationships creations. The constraints do not seem to be what I want to do, the UNIQUENESS is not at all what I am looking for.
I tried to take the problem in an other way :
- Authorise only successors property for the START:EndPoint
- Authorise only predecessors property for the FINISH:EndPoint
but for the 3rd point, I have no idea, and the "reverse-thinking" could be a solution, but I did not find how to apply it.
If you have any idea, even not working, but giving a new vision, I would really appreciate.