1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
| Quintiq file version 2.0
| #parent: #root
| Method GetHasAcyclicHierarchy (output Strings feedbacks_o) declarative remote as Boolean
| {
| Description:
| [*
| 1) The attribute IsCyclicResult is updated whenever CheckHierarchyIsCyclic is invoked.
| 2) It is not possible to invoke CheckHierarchyIsCyclic here as it calls a graph program that cannot be declarative-remote
| *]
| TextBody:
| [*
| // Timothy Guan Jul-14-2015 (created)
|
| value := not this.IsCyclic();
|
| if( not value )
| {
| ccr := this.GetCommunicationChannelRoot();
|
| LibDMF_Util::CollectFeedback( ccr.GetTranslation( "DM_Set_GetHasAcyclicHierarchy_ViolateIsAcyclic",
| this.Name(),
| this.IsCyclicResult() ),
| feedbacks_o )
| }
|
| return value;
| *]
| }
|
|