Quintiq file version 2.0
#parent: CustomDrawRC/CustomDrawDataLayerPISPInputNodeInRouting
Response OnDrop (
  Product_MP source,
  OperationInputPISPNode target
) id:Response_CustomDrawRC_CustomDrawDataLayerPISPInputNodeInRouting_OnDrop_715
{
  #keys: '[139394.0.1316634465]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebCustomDrawDataLayer_OnDrop'
  Precondition:
  [*
    return PISPNodeInRouting::ValidateInput( feedback,
                                             guard( target.PISPNodeInRouting(), null( PISPNodeInRouting )),
                                             true /*isinput*/,
                                             source,
                                             guard( target.PISPNodeInRouting().ProductInStockingPoint_MP().StockingPoint_MP(), null( StockingPoint_MP ) ),
                                             target.OperationInputOutput().Operation() );
  *]
  QuillAction
  {
    Body:
    [*
      // Swap the existing product of PISP with the new product.
      
      opBOM := target.OperationInputOutput().OperationBOM();
      opBOM.AssignToProduct( source );
    *]
    GroupServerCalls: false
  }
}
