Quintiq file version 2.0
#parent: listContextMenu642/MenuClose
Response OnClick (
  structured[SWF_ActivityBase] selection
) id:Response_listContextMenu642_MenuClose_OnClick
{
  #keys: '[142950.0.315256679]'
  CanBindMultiple: false
  DefinitionID => /listContextMenu642/Responsedef_listContextMenu642_MenuClose_OnClick
  Precondition:
  [*
    return SWF_WorkflowDataset.GetCurrentUser().CanProcessActivity( feedback, 
                                                                    selection, 
                                                                    SWF_ActivityBase::ACTION_SetToClose() );
  *]
  QuillAction
  {
    Body:
    [*
      // Set activity(s) to closed
      SWF_WorkflowDataset.Service().TR_BatchUpdateActivityStatus( selection, true, SWF_WorkflowDataset.GetCurrentUserID() );
    *]
    GroupServerCalls: false
  }
}
