Examples of SwimlaneGUIConfiguration


Examples of org.jbpm.ui.orgfunctions.SwimlaneGUIConfiguration

    private static final String SWIMLANES_ELEMENT_NAME = "swimlanes";

    @Override
    public void readFromFile(IFolder folder, ProcessDefinition definition) throws Exception {
        IFile file = folder.getFile(XML_FILE_NAME);
        SwimlaneGUIConfiguration configuration = new SwimlaneGUIConfiguration();
        if (file.exists()) {
            Document document = XmlUtil.parseDocument(file.getContents());
            NodeList elementsList = document.getDocumentElement().getElementsByTagName(SWIMLANE_ELEMENT_NAME);
            for (int j = 0; j < elementsList.getLength(); j++) {
                Element element = (Element) elementsList.item(j);
                String swimlaneName = element.getAttribute(NAME_ATTRIBUTE_NAME);
                String path = element.getAttribute(PATH_ATTRIBUTE_NAME);
                configuration.putSwimlanePath(swimlaneName, path);
            }
        }
        definition.setSwimlaneGUIConfiguration(configuration);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.