@Override public void deleteCollection(Context context, Collection collection) throws SQLException, IOException, AuthorizeException { authorizeService.authorizeAction(context, collection, Constants.WRITE); collection.setWorkflowGroup(context, 1, null); collection.setWorkflowGroup(context, 2, null); collection.setWorkflowGroup(context, 3, null); workflowItemService.deleteByCollection(context, collection); }
collection.setWorkflowGroup(step, null);
collection.setWorkflowGroup(1, null); collection.update(); collection.setWorkflowGroup(2, null); collection.update(); collection.setWorkflowGroup(3, null); collection.update();