Quintiq file version 2.0
#parent: ListSteps
Response OnClick (
  structured[SWF_Step] selection
) id:Response_ListSteps_MenuSetToCompleted_OnClick
{
  #keys: '[107588.2015.1151296621]'
  Body:
  [*
    // Mark selected steps as completed
    service := SWF_WorkflowDataset.Service();
    service.TR_BatchUpdateStepStatus( selection, true, SWF_WorkflowDataset.GetCurrentUserID() );
  *]
  CanBindMultiple: false
  DefinitionID => /ListSteps/Responsedef_ListSteps_Menu_OnClick
  Initiator: 'MenuSetToCompleted'
  Precondition:
  [*
    return SWF_WorkflowDataset.GetCurrentUser().CanProcessStep( feedback, 
                                                                selection, 
                                                                SWF_Step::ACTION_SetToComplete() );
  *]
}
