Package org.dspace.xmlworkflow.state.actions

Examples of org.dspace.xmlworkflow.state.actions.UserSelectionActionConfig


        Node roleNode = stepNode.getAttributes().getNamedItem("role");
        Role role = null;
        if(roleNode != null)
            role = workflow.getRoles().get(roleNode.getTextContent());
        String userSelectionActionID = stepNode.getAttributes().getNamedItem("userSelectionMethod").getTextContent();
        UserSelectionActionConfig userSelection = createUserAssignmentActionConfig(userSelectionActionID);
        return new Step(firstStepID, workflow, role, userSelection, getStepActionConfigs(stepNode), getStepOutcomes(stepNode), getNbRequiredUser(stepNode));
    }
View Full Code Here


            Node roleNode = stepNode.getAttributes().getNamedItem("role");
            Role role = null;
            if(roleNode != null)
                role = workflow.getRoles().get(roleNode.getTextContent());
            String userSelectionActionID = stepNode.getAttributes().getNamedItem("userSelectionMethod").getTextContent();
            UserSelectionActionConfig userSelection = createUserAssignmentActionConfig(userSelectionActionID);
            return new Step(stepID, workflow, role, userSelection, getStepActionConfigs(stepNode), getStepOutcomes(stepNode), getNbRequiredUser(stepNode));

        }catch (Exception e){
            log.error("Error while creating step with :" + stepID, e);
            throw new WorkflowConfigurationException("Step: " + stepID + " does not exist for workflow: "+workflow.getID());
View Full Code Here

TOP

Related Classes of org.dspace.xmlworkflow.state.actions.UserSelectionActionConfig

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.