Package org.jbpm.services.ejb.api
Interface DeploymentServiceEJBRemote
-
- All Known Implementing Classes:
DeploymentServiceEJBImpl
public interface DeploymentServiceEJBRemote
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
activate(String deploymentId)
Activates given deployment by making sure it will be available for execution.void
deactivate(String deploymentId)
Deactivates given deployment by making it only available for already running instances.void
deploy(String groupId, String artifactId, String version)
Deploys artifact identified by given GAV (group, artifact, version)void
deploy(String groupId, String artifactId, String version, String kbaseName, String ksessionName)
Deploys artifact identified by given GAV (group, artifact, version) with additional selection of kbase and ksession names from kmodule.xml - these names must exists in kmodule.xml of the artifact being deployedvoid
deploy(String groupId, String artifactId, String version, String kbaseName, String ksessionName, String strategy)
Deploys artifact identified by given GAV (group, artifact, version) with additional selection of kbase and ksession names from kmodule.xml - these names must exists in kmodule.xml of the artifact being deployed and runtime strategy (singleton, per request, per process instance)boolean
isDeployed(String deploymentUnitId)
Performs a check if given deployment is already activevoid
undeploy(String deploymentId)
Undeploys currently active deployment unit identified by given deploymentIdvoid
undeploy(String deploymentId, Function<DeploymentUnit,Boolean> beforeUndeploy)
Undeploys currently active deployment unit identified by given deploymentId
-
-
-
Method Detail
-
deploy
void deploy(String groupId, String artifactId, String version)
Deploys artifact identified by given GAV (group, artifact, version)- Parameters:
groupId
- group id of the artifact to deployartifactId
- artifact id of the artifact to deployversion
- version of the artifact to deploy
-
deploy
void deploy(String groupId, String artifactId, String version, String kbaseName, String ksessionName)
Deploys artifact identified by given GAV (group, artifact, version) with additional selection of kbase and ksession names from kmodule.xml - these names must exists in kmodule.xml of the artifact being deployed- Parameters:
groupId
- group id of the artifact to deployartifactId
- artifact id of the artifact to deployversion
- version of the artifact to deploykbaseName
- name of kie base defined in kmodule.xmlksessionName
- name of kie session defined in kmodule.xml
-
deploy
void deploy(String groupId, String artifactId, String version, String kbaseName, String ksessionName, String strategy)
Deploys artifact identified by given GAV (group, artifact, version) with additional selection of kbase and ksession names from kmodule.xml - these names must exists in kmodule.xml of the artifact being deployed and runtime strategy (singleton, per request, per process instance)- Parameters:
groupId
- group id of the artifact to deployartifactId
- artifact id of the artifact to deployversion
- version of the artifact to deploykbaseName
- name of kie base defined in kmodule.xmlksessionName
- name of kie session defined in kmodule.xmlstrategy
- selected runtime strategy
-
undeploy
void undeploy(String deploymentId)
Undeploys currently active deployment unit identified by given deploymentId- Parameters:
deploymentId
- unique identifier of the deployment
-
undeploy
void undeploy(String deploymentId, Function<DeploymentUnit,Boolean> beforeUndeploy)
Undeploys currently active deployment unit identified by given deploymentId- Parameters:
deploymentId
- unique identifier of the deploymentbeforeUndeploy
- a function to run custom actions before undeploying a givenDeploymentUnit
. It should return if the unit can be undeployed or not determining if the deployment can continue.
-
activate
void activate(String deploymentId)
Activates given deployment by making sure it will be available for execution.- Parameters:
deploymentId
-
-
deactivate
void deactivate(String deploymentId)
Deactivates given deployment by making it only available for already running instances.- Parameters:
deploymentId
-
-
isDeployed
boolean isDeployed(String deploymentUnitId)
Performs a check if given deployment is already active- Parameters:
deploymentUnitId
-- Returns:
-
-