Quintiq file version 2.0
#parent: #root
Method OnOK () id:Method_SWF_DialogCreateEditCycle_OnOK
{
  #keys: '[136682.0.893202149]'
  Body:
  [*
    //On ok
    if ( isnull( DataHolderDialogData.Data() ) )
    {
      Form.New();
    }
    else
    {
      Form.Edit();  
    }
    
    SWF_WorkflowDataset.WorkflowDefinition().SynchronizeAllWorkflow();
    
    Form.Close();
  *]
}
