Examples of RuleBaseElementType


Examples of org.openengsb.core.workflow.api.model.RuleBaseElementType

    }

    private synchronized void doInstall(File artifact) throws RuleBaseException, IOException, SAXException,
        ParserConfigurationException {
        String ending = FilenameUtils.getExtension(artifact.getName());
        RuleBaseElementType typeFromFile = getTypeFromFile(artifact);

        if (typeFromFile != null) {
            installRuleBaseElement(artifact);
        } else {
            if (IMPORT_ENDING.equals(ending)) {
View Full Code Here

Examples of org.openengsb.core.workflow.api.model.RuleBaseElementType

    @Override
    public void update(File artifact) throws Exception {
        LOGGER.debug("WorkflowDeployer.update(\"{}\")", artifact.getAbsolutePath());
        try {
            RuleBaseElementType typeFromFile = getTypeFromFile(artifact);
            String ending = FilenameUtils.getExtension(artifact.getName());
            if (typeFromFile != null) {
                doUpdateArtifact(artifact);
            } else if (IMPORT_ENDING.equals(ending)) {
                installImportFile(artifact);
View Full Code Here

Examples of org.openengsb.core.workflow.api.model.RuleBaseElementType

        }
        LOGGER.info("Successfully deleted workflow file \"{}\"", artifact.getName());
    }

    private synchronized void doUninstall(File artifact) throws Exception {
        RuleBaseElementType type = getTypeFromFile(artifact);
        if (type != null) {
            RuleBaseElementId id = getIdforFile(artifact);
            if (id.getType().equals(RuleBaseElementType.Process)) {
                id = cache.remove(artifact.getName());
            }
View Full Code Here

Examples of org.openengsb.core.workflow.api.model.RuleBaseElementType

        }
    }

    private RuleBaseElementId getIdforFile(File artifact) throws RuleBaseException, SAXException, IOException,
        ParserConfigurationException {
        RuleBaseElementType type = getTypeFromFile(artifact);
        String name = FilenameUtils.removeExtension(artifact.getName());
        RuleBaseElementId id = new RuleBaseElementId(type, name);
        if (artifact.exists() && type.equals(RuleBaseElementType.Process)) {
            id.setPackageName(readPackageNameFromProcessFile(artifact));
        }
        return id;
    }
View Full Code Here

Examples of org.openengsb.core.workflow.api.model.RuleBaseElementType

        target.add(ruleChoice);
        loadRuleChoice();
    }

    private void loadRuleChoice() {
        RuleBaseElementType selectedType = typeChoice.getModelObject();
        List<RuleBaseElementId> choices = new ArrayList<RuleBaseElementId>(ruleManagerProvider.getRuleManager()
                .listAll(selectedType));
        ruleChoice.setChoices(choices);
        ruleChoice.setModel(new Model<RuleBaseElementId>());
    }
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.