Package org.jboss.on.common.jbossas

Examples of org.jboss.on.common.jbossas.JBPMWorkflowManager


        JBossASPaths jbossPaths = new JBossASPaths();
        jbossPaths.setHomeDir(getPluginConfiguration().getSimpleValue(JBOSS_HOME_DIR_CONFIG_PROP, null));
        jbossPaths.setServerDir(getPluginConfiguration().getSimpleValue(CONFIGURATION_PATH_CONFIG_PROP, null));

        JBPMWorkflowManager workflowManager = new JBPMWorkflowManager(contentContext, controlFacade, jbossPaths);

        this.contentFacetDelegate = new JBossASContentFacetDelegate(workflowManager, this.configPath);

        // Attempt to load the connection now. If we cannot, do not consider the start operation as failed. The only
        // exception to this rule is if the connection cannot be made due to a JMX security exception. In this case,
View Full Code Here


        // Now create all our helpers and delegates.
        this.logFileEventDelegate = new LogFileEventResourceComponentHelper(this.resourceContext);
        this.logFileEventDelegate.startLogFileEventPollers();

        JBPMWorkflowManager workflowManager = createJbpmWorkflowManager(resourceContext);
        File configPath = getConfigurationPath();

        this.contentFacetDelegate = new ApplicationServerContentFacetDelegate(workflowManager, configPath,
            resourceContext.getContentContext());
View Full Code Here

    }

    private JBPMWorkflowManager createJbpmWorkflowManager(ResourceContext resourceContext) {
        ContentContext contentContext = resourceContext.getContentContext();
        ControlActionFacade controlActionFacade = initControlActionFacade();
        JBPMWorkflowManager workflowManager = new JBPMWorkflowManager(contentContext, controlActionFacade,
            this.getJBossASPaths());
        return workflowManager;
    }
View Full Code Here

        MockContentContext mockContentContext = new MockContentContext();
        MockContentServices mockContentServices = (MockContentServices) mockContentContext.getContentServices();
        mockContentServices.setFilename("test-patch.zip");

        // Test
        JBPMWorkflowManager manager = new JBPMWorkflowManager(mockContentContext, mockFacade,
            getJBossPaths(jbossPluginConfiguration));
        DeployIndividualPackageResponse response = manager.run(packageDetails);

        assert response.getResult() == ContentResponseResult.SUCCESS : "Incorrect response status. Expected: Success, Found: "
            + response.getResult();

        List<DeployPackageStep> steps = response.getDeploymentSteps();
View Full Code Here

        MockContentContext mockContentContext = new MockContentContext();
        MockContentServices mockContentServices = (MockContentServices) mockContentContext.getContentServices();
        mockContentServices.setFilename("nonexistent-file");

        // Test
        JBPMWorkflowManager manager = new JBPMWorkflowManager(mockContentContext, mockFacade,
            getJBossPaths(jbossPluginConfiguration));
        DeployIndividualPackageResponse response = manager.run(packageDetails);

        assert response.getResult() == ContentResponseResult.FAILURE : "Incorrect response status. Expected: Failed, Found: "
            + response.getResult();

        List<DeployPackageStep> steps = response.getDeploymentSteps();
View Full Code Here

        MockContentContext mockContentContext = new MockContentContext();
        MockContentServices mockContentServices = (MockContentServices) mockContentContext.getContentServices();
        mockContentServices.setFilename("test-patch.zip");

        // Test
        JBPMWorkflowManager manager = new JBPMWorkflowManager(mockContentContext, mockFacade,
            getJBossPaths(jbossPluginConfiguration));
        List<DeployPackageStep> steps = manager.translateSteps(packageDetails);

        assert steps != null : "Null steps received from call to translate steps";
        assert steps.size() == 8 : "Incorrect number of steps translated. Expected: 8, Found: " + steps.size();

        for (DeployPackageStep step : steps) {
View Full Code Here

TOP

Related Classes of org.jboss.on.common.jbossas.JBPMWorkflowManager

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.