workflowGroup[step-1] = Group.create(ourContext); workflowGroup[step-1].setName( "COLLECTION_" + getID() + "_WORKFLOW_STEP_" + step); workflowGroup[step-1].update();
Group g = Group.create(ourContext); g.setName("COLLECTION_" + getID() + "_WORKFLOW_STEP_" + step); g.update(); setWorkflowGroup(step, g);
    public Group createWorkflowGroup(int step)        throws SQLException, AuthorizeException    {        // Check authorisation        AuthorizeManager.authorizeAction(ourContext, this, Constants.WRITE);        if (workflowGroup[step-1] == null)        {            workflowGroup[step-1] = Group.create(ourContext);            workflowGroup[step-1].setName(                "COLLECTION_" + getID() + "_WORKFLOW_STEP_" + step);            workflowGroup[step-1].update();        }        return workflowGroup[step-1];    }