Package com.psddev.cms.db

Examples of com.psddev.cms.db.Workflow


                            } else {
                                String workflowState = ObjectUtils.to(String.class, originals.get("cms.workflow.currentState"));

                                if (workflowState != null) {
                                    Workflow workflow = Query.
                                            from(Workflow.class).
                                            where("contentTypes = ?", h.getState().get("objectType")).
                                            first();

                                    if (workflow != null) {
                                        for (WorkflowState s : workflow.getStates()) {
                                            if (workflowState.equals(s.getName())) {
                                                workflowState = s.getDisplayName();
                                                break;
                                            }
                                        }
View Full Code Here


        String oldWorkflowState = workflowData.getCurrentState();

        try {
            state.beginWrites();

            Workflow workflow = Query.from(Workflow.class).where("contentTypes = ?", state.getType()).first();

            if (workflow != null) {
                WorkflowTransition transition = workflow.getTransitions().get(action);

                if (transition != null) {
                    WorkflowLog log = new WorkflowLog();

                    updateUsingParameters(object);
View Full Code Here

TOP

Related Classes of com.psddev.cms.db.Workflow

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.