Quintiq file version 2.0
#parent: #root
Method New (
  internal[GUIComponent] parent
) id:Method_SWF_DialogCreateEditWorkflow_New
{
  #keys: '[113694.2.1087538420]'
  Body:
  [*
    // Create a new cycle
    data := null( SWF_Workflow );
    Dialog.Data( data );
    
    result := this.DoModal( parent );
    
    if( result > 0 )
    {
      service := SWF_WorkflowDataset.Service();
      service.TR_CreateUpdateWorkflow(  Key::ZeroKey(),// SWF_WorkflowDataset.GetNewGlobalID(),
                                        EditorName.Text(),
                                        GUIDateTimeSelectorStartDate.DateTime().Date(),
                                        GUIDateTimeSelectorStartOfPlanning.DateTime().Date(),
                                        false );
    }
  *]
}
