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
29
30
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  Method SynchronizeMe ( 
 |    SWF_Workflow workflow, 
 |    SWF_Step parent 
 |  ) as SWF_Step 
 |  { 
 |    Description: 'Creates/updates the step in workflow that matches this definition step.' 
 |    TextBody: 
 |    [* 
 |      step := this.GetWorkflowStep( workflow ); 
 |       
 |      if ( isnull( step ) ) 
 |      {                  
 |        step := SWF_Step::Create( workflow, this ); 
 |      } 
 |       
 |      step.Update ( step.HasExpectedCompletionDateManual(), 
 |                    step.ExpectedCompletionDate(), 
 |                    step.DueDateHasManual(), 
 |                    step.DueDate(),               
 |                    this.Name(), 
 |                    this.AssignedAuthorization(), 
 |                    parent ); 
 |       
 |      step.DueDateFromDefinition( this.DueOffset() + workflow.StartDate() - 1 );  
 |       
 |      return step; 
 |    *] 
 |  } 
 |  
  |