Quintiq file version 2.0
#parent: #root
Method New (
  internal[GUIComponent] parent,
  SWF_StepDefinition selectedstep
) id:Method_SWF_DialogCreateStepDefinitionDependency_New
{
  #keys: '[113694.2.1100059368]'
  Body:
  [*
    // Create a new dependency
    data := selectedstep
    Dialog.Data( data );
    
    result := this.DoModal( parent );
    
    if( result > 0 )
    {
      service := SWF_WorkflowDataset.Service();
      service.TR_CreateStepDefinitionDependency( SelectionDependingOn.Data().ID(), data.ID() );
    }
  *]
}
