Quintiq file version 2.0
#parent: ListSteps
Response OnClick (
  structured[SWF_Step] selection
) id:Response_ListSteps_MenuSetToIncomplete_OnClick
{
  #keys: '[113694.2.1202730308]'
  Body:
  [*
    // Set the step to incomplete
    service := SWF_WorkflowDataset.Service();
    service.TR_BatchUpdateStepStatus( selection, false, SWF_WorkflowDataset.GetCurrentUserID() );
  *]
  CanBindMultiple: false
  DefinitionID => /ListSteps/Responsedef_ListSteps_Menu_OnClick
  Initiator: 'MenuSetToIncomplete'
  Precondition:
  [*
    return SWF_WorkflowDataset.GetCurrentUser().CanProcessStep( feedback, 
                                                                selection, 
                                                                SWF_Step::ACTION_SetToIncomplete() );
  *]
}
