Quintiq file version 2.0
#parent: ListSWF_Activity
Response OnClick (
  structured[SWF_ActivityBase] selection
) id:Response_ListSWF_Activity_MenuDelete_OnClick
{
  #keys: '[113694.2.1190154522]'
  Body:
  [*
    // Delete activity
    service := SWF_WorkflowDataset.Service();
    service.TR_BatchDeleteActivity( selection );
  *]
  CanBindMultiple: false
  DefinitionID => /ListSWF_Activity/Responsedef_ListSWF_Activity_Menu_OnClick
  Initiator: 'MenuDelete'
  Precondition:
  [*
    return SWF_WorkflowDataset.GetCurrentUser().CanProcessActivity( feedback, 
                                                                    selection, 
                                                                    SWF_ActivityBase::ACTION_EditDelete() );
  *]
}
