Quintiq file version 2.0
#parent: ListSWF_Activity
Response OnClick (
  structured[SWF_ActivityBase] selection
) id:Response_ListSWF_Activity_MenuSetToClosed_OnClick
{
  #keys: '[113694.2.1190158168]'
  Body:
  [*
    // Mark selected steps as finished
    service := SWF_WorkflowDataset.Service();
    service.TR_BatchUpdateActivityStatus( selection, true, SWF_WorkflowDataset.GetCurrentUserID() );
  *]
  CanBindMultiple: false
  DefinitionID => /ListSWF_Activity/Responsedef_ListSWF_Activity_Menu_OnClick
  Initiator: 'MenuSetToClosed'
  Precondition:
  [*
    return SWF_WorkflowDataset.GetCurrentUser().CanProcessActivity( feedback, 
                                                                    selection, 
                                                                    SWF_ActivityBase::ACTION_SetToClose() );
  *]
}
