Quintiq file version 2.0
#parent: #root
Method EnableWorkflow (
  Boolean enabled
) id:Method_ApplicationLibMacroPlanner_EnableWorkflow
{
  #keys: '[113694.2.1146502616]'
  Body:
  [*
    // Toogle workflow
    MenuFormsWorkflow.Visible( enabled );
    MenuEditWorkflow.Visible( enabled );
    
    ButtonShowHideWorkflowToolbar.Visible( enabled );
    
    if ( enabled )
    {
      SWF_MP_CustomDrawComponentProcessDashboard.OnApplicationCreated();
    }
    else
    {
      SWF_MP_CustomDrawComponentProcessDashboard.ShowHideWorkflowDashboard( enabled );
    }
  *]
}
