Package org.jbpm.services.ejb.impl
Class DeploymentServiceEJBImpl
- java.lang.Object
-
- org.jbpm.kie.services.impl.AbstractDeploymentService
-
- org.jbpm.kie.services.impl.KModuleDeploymentService
-
- org.jbpm.services.ejb.impl.DeploymentServiceEJBImpl
-
- All Implemented Interfaces:
DeploymentService
,ListenerSupport
,DeploymentServiceEJBLocal
,DeploymentServiceEJBRemote
public class DeploymentServiceEJBImpl extends KModuleDeploymentService implements ListenerSupport, DeploymentService, DeploymentServiceEJBLocal, DeploymentServiceEJBRemote
-
-
Field Summary
-
Fields inherited from class org.jbpm.kie.services.impl.KModuleDeploymentService
bpmn2Service, caseIdXPathExpression, executorService, formManagerService, logger, merger, processIdXPathExpression
-
Fields inherited from class org.jbpm.kie.services.impl.AbstractDeploymentService
deploymentsMap, emf, listeners, managerFactory, runtimeDataService
-
-
Constructor Summary
Constructors Constructor Description DeploymentServiceEJBImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addAsyncHandler(KModuleDeploymentUnit unit)
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)void
deploy(DeploymentUnit unit)
Performs deployment operation of givenunit
.protected boolean
isExecutorOnClasspath()
void
onInit()
void
setBpmn2Service(DefinitionService bpmn2Service)
void
setContext(javax.ejb.EJBContext context)
void
setEmf(javax.persistence.EntityManagerFactory emf)
void
setExecutorService(org.kie.api.executor.ExecutorService executorService)
void
setFormManagerService(FormManagerService formManagerService)
void
setRuntimeDataService(RuntimeDataService runtimeDataService)
void
shutdown()
void
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-
Methods inherited from class org.jbpm.kie.services.impl.KModuleDeploymentService
activate, addClassToDeployedUnit, boostrapRuntimeEnvironmentBuilder, buildContextParameters, deactivate, getCaseId, getInstanceFromModel, getProcessId, getRegisterableItemsFactory, processClassloader, processResources, setMerger, undeploy
-
Methods inherited from class org.jbpm.kie.services.impl.AbstractDeploymentService
addListener, commonDeploy, getDeployedUnit, getDeployedUnits, getDeploymentsMap, getEmf, getListeners, getManagerFactory, getRuntimeDataService, getRuntimeManager, isDeployed, notifyOnActivate, notifyOnDeactivate, notifyOnDeploy, notifyOnUnDeploy, removeListener, setIdentityProvider, setManagerFactory, setupAuditLogger, undeploy
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jbpm.services.api.DeploymentService
activate, deactivate, getDeployedUnit, getDeployedUnits, getRuntimeManager, isDeployed, undeploy, undeploy
-
Methods inherited from interface org.jbpm.services.ejb.api.DeploymentServiceEJBRemote
activate, deactivate, isDeployed
-
Methods inherited from interface org.jbpm.services.api.ListenerSupport
addListener, getListeners, removeListener
-
-
-
-
Method Detail
-
onInit
@PostConstruct public void onInit()
- Overrides:
onInit
in classKModuleDeploymentService
-
shutdown
@PreDestroy public void shutdown()
- Overrides:
shutdown
in classAbstractDeploymentService
-
setContext
public void setContext(javax.ejb.EJBContext context)
-
setEmf
public void setEmf(javax.persistence.EntityManagerFactory emf)
- Overrides:
setEmf
in classAbstractDeploymentService
-
setBpmn2Service
public void setBpmn2Service(DefinitionService bpmn2Service)
- Overrides:
setBpmn2Service
in classKModuleDeploymentService
-
setRuntimeDataService
public void setRuntimeDataService(RuntimeDataService runtimeDataService)
- Overrides:
setRuntimeDataService
in classAbstractDeploymentService
-
setFormManagerService
public void setFormManagerService(FormManagerService formManagerService)
- Overrides:
setFormManagerService
in classKModuleDeploymentService
-
setExecutorService
public void setExecutorService(org.kie.api.executor.ExecutorService executorService)
- Overrides:
setExecutorService
in classKModuleDeploymentService
-
deploy
public void deploy(String groupId, String artifactId, String version)
Description copied from interface:DeploymentServiceEJBRemote
Deploys artifact identified by given GAV (group, artifact, version)- Specified by:
deploy
in interfaceDeploymentServiceEJBRemote
- Parameters:
groupId
- group id of the artifact to deployartifactId
- artifact id of the artifact to deployversion
- version of the artifact to deploy
-
deploy
public void deploy(String groupId, String artifactId, String version, String kbaseName, String ksessionName)
Description copied from interface:DeploymentServiceEJBRemote
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- Specified by:
deploy
in interfaceDeploymentServiceEJBRemote
- 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
public void deploy(String groupId, String artifactId, String version, String kbaseName, String ksessionName, String strategy)
Description copied from interface:DeploymentServiceEJBRemote
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)- Specified by:
deploy
in interfaceDeploymentServiceEJBRemote
- 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
-
deploy
public void deploy(DeploymentUnit unit)
Description copied from interface:DeploymentService
Performs deployment operation of givenunit
.- Specified by:
deploy
in interfaceDeploymentService
- Overrides:
deploy
in classKModuleDeploymentService
- Parameters:
unit
- deployment unit to be deployed to runtime
-
undeploy
public void undeploy(String deploymentId)
Description copied from interface:DeploymentServiceEJBRemote
Undeploys currently active deployment unit identified by given deploymentId- Specified by:
undeploy
in interfaceDeploymentServiceEJBRemote
- Parameters:
deploymentId
- unique identifier of the deployment
-
undeploy
public void undeploy(String deploymentId, Function<DeploymentUnit,Boolean> beforeUndeploy)
Description copied from interface:DeploymentServiceEJBRemote
Undeploys currently active deployment unit identified by given deploymentId- Specified by:
undeploy
in interfaceDeploymentServiceEJBRemote
- 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.
-
addAsyncHandler
protected void addAsyncHandler(KModuleDeploymentUnit unit)
-
isExecutorOnClasspath
protected boolean isExecutorOnClasspath()
-
-