Package org.jbpm.ui.common.model

Examples of org.jbpm.ui.common.model.Action


            NodeList elementsList = document.getDocumentElement().getElementsByTagName(ELEMENT_NAME);
            for (int j = 0; j < elementsList.getLength(); j++) {
                Element element = (Element) elementsList.item(j);
                String path = element.getAttribute(PATH_ATTRIBUTE_NAME);
                String description = element.getAttribute(DESC_ATTRIBUTE_NAME);
                Action action = findByPath(definition, path);
                if (action != null) {
                    action.setDescription(description);
                }
            }
        } catch (Exception e) {
            DesignerLogger.logError("Unable to apply " + XML_FILE_NAME, e);
        }
View Full Code Here


        }
        String name;
        if (element instanceof NamedGraphElement) {
            name = ((NamedGraphElement) element).getName();
        } else if (element instanceof Action) {
            Action action = (Action) element;
            name = ACTION_INDEX + action.getParent().getActions().indexOf(action);
        } else {
            throw new IllegalArgumentException("" + element);
        }
        return getPath(element.getParent()) + DELIM + name;
    }
View Full Code Here

        this.actionIndex = actionIndex;
    }

    private Action createAction() {
        String jpdlVersion = ((GraphElement) target).getProcessDefinition().getJpdlVersion();
        Action action = JpdlVersionRegistry.getElementTypeDefinition(jpdlVersion, "action").createElement();
        action.setDelegationClassName("");
        return action;
    }
View Full Code Here

TOP

Related Classes of org.jbpm.ui.common.model.Action

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.