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 voidaddAsyncHandler(KModuleDeploymentUnit unit)voiddeploy(String groupId, String artifactId, String version)Deploys artifact identified by given GAV (group, artifact, version)voiddeploy(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 deployedvoiddeploy(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)voiddeploy(DeploymentUnit unit)Performs deployment operation of givenunit.protected booleanisExecutorOnClasspath()voidonInit()voidsetBpmn2Service(DefinitionService bpmn2Service)voidsetContext(javax.ejb.EJBContext context)voidsetEmf(javax.persistence.EntityManagerFactory emf)voidsetExecutorService(org.kie.api.executor.ExecutorService executorService)voidsetFormManagerService(FormManagerService formManagerService)voidsetRuntimeDataService(RuntimeDataService runtimeDataService)voidshutdown()voidundeploy(String deploymentId)Undeploys currently active deployment unit identified by given deploymentIdvoidundeploy(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:
onInitin classKModuleDeploymentService
-
shutdown
@PreDestroy public void shutdown()
- Overrides:
shutdownin classAbstractDeploymentService
-
setContext
public void setContext(javax.ejb.EJBContext context)
-
setEmf
public void setEmf(javax.persistence.EntityManagerFactory emf)
- Overrides:
setEmfin classAbstractDeploymentService
-
setBpmn2Service
public void setBpmn2Service(DefinitionService bpmn2Service)
- Overrides:
setBpmn2Servicein classKModuleDeploymentService
-
setRuntimeDataService
public void setRuntimeDataService(RuntimeDataService runtimeDataService)
- Overrides:
setRuntimeDataServicein classAbstractDeploymentService
-
setFormManagerService
public void setFormManagerService(FormManagerService formManagerService)
- Overrides:
setFormManagerServicein classKModuleDeploymentService
-
setExecutorService
public void setExecutorService(org.kie.api.executor.ExecutorService executorService)
- Overrides:
setExecutorServicein classKModuleDeploymentService
-
deploy
public void deploy(String groupId, String artifactId, String version)
Description copied from interface:DeploymentServiceEJBRemoteDeploys artifact identified by given GAV (group, artifact, version)- Specified by:
deployin 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:DeploymentServiceEJBRemoteDeploys 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:
deployin 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:DeploymentServiceEJBRemoteDeploys 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:
deployin 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:DeploymentServicePerforms deployment operation of givenunit.- Specified by:
deployin interfaceDeploymentService- Overrides:
deployin classKModuleDeploymentService- Parameters:
unit- deployment unit to be deployed to runtime
-
undeploy
public void undeploy(String deploymentId)
Description copied from interface:DeploymentServiceEJBRemoteUndeploys currently active deployment unit identified by given deploymentId- Specified by:
undeployin interfaceDeploymentServiceEJBRemote- Parameters:
deploymentId- unique identifier of the deployment
-
undeploy
public void undeploy(String deploymentId, Function<DeploymentUnit,Boolean> beforeUndeploy)
Description copied from interface:DeploymentServiceEJBRemoteUndeploys currently active deployment unit identified by given deploymentId- Specified by:
undeployin 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()
-
-