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