@Transactional public void deleteWorkFlowforObject(final Map workflowsearchparams){
  final Criteria workFlowCrit=getCriteriaForDeleteorModify(workflowsearchparams);
  for (  final WorkFlowMatrix matrix : (List<WorkFlowMatrix>)workFlowCrit.list()) {
    workflowMatrixRepository.delete(matrix);
  }
}

@ Transactional public void deleteWorkFlowforObject ( final Map workflowsearchparams ) { final Criteria workFlowCrit = getCriteriaForDeleteorModify ( workflowsearchparams ) ; for ( final WorkFlowMatrix matrix : ( List < WorkFlowMatrix > ) workFlowCrit . list ( ) ) { workflowMatrixRepository . delete ( matrix ) ; } }
this method is used to delete the workflow matrix details
