Package org.apache.lenya.cms.workflow

Examples of org.apache.lenya.cms.workflow.Situation


   
    /** Returns the transitions that can fire for this user.
     *
     */
    public Transition[] getExecutableTransitions(User user) {
        Situation situation = new SituationImpl(getDocument(), user);
        Transition transitions[] = getWorkflow().getLeavingTransitions(getCurrentState());
        Set executableTransitions = new HashSet();
       
        for (int i = 0; i < transitions.length; i++) {
            if (transitions[i].canFire(situation)) {
View Full Code Here

TOP

Related Classes of org.apache.lenya.cms.workflow.Situation

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.