1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
| Quintiq file version 2.0
| #parent: #root
| StaticMethod IsCircularRequiredAndDependent (
| SWF_StepDefinition requiredstep,
| SWF_StepDefinition dependentstep
| ) remote as Boolean
| {
| Description: 'Check if the required and dependent step are part of circular chain.'
| TextBody:
| [*
| result := requiredstep = dependentstep;
|
| // Do not continue the check if its already in circular
| if( not result
| and exists( dependentstep, DependendStepDepenency.DependentStep, e,
| SWF_StepDefinitionDependency::IsCircularRequiredAndDependent( requiredstep, e ) ) )
| {
| result := true;
| }
|
| return result;
| *]
| }
|
|