yanweiyuan3
2023-08-09 588bc7829387dfc761cc25f06f77d4c81818bd10
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
31
32
Quintiq file version 2.0
#root
#parent: #DomainModel
Type BaseOperationLink
{
  #keys: '5[113694.1.2123027419][113694.1.2123027417][0.0.0][113694.1.2123027418][113694.1.2123027420]'
  BaseType: Object
  Description: 'A base template to instantiate Operation input and output'
  OnDelete:
  [*
    // On delete of operation input/output, delete fulfillment
    traverse( this, OperationOutput.NewSupply, ns )
    {
      ns.DeleteFulfillment();
    }
    
    traverse( this, OperationInput.DependentDemand, dd )
    {
      dd.DeleteFulfillment();
    }
    
    this.SynchronizeInputGroup( false, true );
    
    // Delete the dependent demand input group from the same group
    ddigs := selectset( this, DependentDemandInputGroup, ddig, true );
    DependentDemandInputGroup::Delete( ddigs );
    
    this.SynchronizeOnDelete();
  *]
  StructuredName: 'BaseOperationLinks'
  InterfaceProperties { Accessibility: 'Extensible' }
}