org.jboss.on.common.jbossas
Class JBPMWorkflowManager
java.lang.Object
org.jboss.on.common.jbossas.JBPMWorkflowManager
public class JBPMWorkflowManager
- extends Object
Class responsible for managing the running of a JBPM process to apply a patch to a JBoss instance. This class will
take care of populating the context with whatever variables are necessary, including the creation of any temporary
directories that may be needed. The results of the workflow run will be parsed and converted into the necessary
domain model and returned to the caller.
- Author:
- Jason Dobies
|
Method Summary |
org.rhq.core.domain.content.transfer.DeployIndividualPackageResponse |
run(org.rhq.core.domain.content.transfer.ResourcePackageDetails packageDetails)
Runs the JBPM process included in the provided package description. |
List<org.rhq.core.domain.content.transfer.DeployPackageStep> |
translateSteps(org.rhq.core.domain.content.transfer.ResourcePackageDetails packageDetails)
Translates the metadata inside the given package into a list of readable steps that will be executed
during this package's installation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JBPMWorkflowManager
public JBPMWorkflowManager(ContentContext contentContext,
ControlActionFacade controlFacade,
JBossASPaths jbossPaths)
run
public org.rhq.core.domain.content.transfer.DeployIndividualPackageResponse run(org.rhq.core.domain.content.transfer.ResourcePackageDetails packageDetails)
throws Exception
- Runs the JBPM process included in the provided package description. This method will make calls back into
the plugin container as necessary to retrieve information or execute operations.
- Parameters:
packageDetails - contains data to describe the package being installed
- Returns:
- plugin container domain model representation of the result of attempting to install the package
- Throws:
Exception - if there are any unexpected errors during the process
translateSteps
public List<org.rhq.core.domain.content.transfer.DeployPackageStep> translateSteps(org.rhq.core.domain.content.transfer.ResourcePackageDetails packageDetails)
throws Exception
- Translates the metadata inside the given package into a list of readable steps that will be executed
during this package's installation. This call will not execute the package deployment nor cause
any changes to be made to the resource.
- Parameters:
packageDetails - generate the steps for this package; cannot be null
- Returns:
- translated steps if the metadata in this package was populated;
null otherwise.
- Throws:
Exception - if there is an error during the translation
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.