public class PreUndeployOperations extends Object
DeploymentService#undeploy(DeploymentUnit, Function)
Constructor and Description |
---|
PreUndeployOperations() |
Modifier and Type | Method and Description |
---|---|
static Function<org.jbpm.services.api.model.DeploymentUnit,Boolean> |
abortUnitActiveProcessInstances(org.jbpm.services.api.RuntimeDataService runtimeDataService,
org.jbpm.services.api.DeploymentService deploymentService)
Returns a function that checks if a given
DeploymentUnit has active process instances instances, aborts them and,
if nothing wrong happened, lets the undeployment operation continue. |
static Function<org.jbpm.services.api.model.DeploymentUnit,Boolean> |
checkActiveProcessInstances(org.jbpm.services.api.RuntimeDataService runtimeDataService)
Returns a function that checks if a given
DeploymentUnit has active process instances and prevents its undeployment. |
static Function<org.jbpm.services.api.model.DeploymentUnit,Boolean> |
doNothing()
Returns a function that bypasses the check and always allows to undeploy.
|
public static Function<org.jbpm.services.api.model.DeploymentUnit,Boolean> checkActiveProcessInstances(org.jbpm.services.api.RuntimeDataService runtimeDataService)
DeploymentUnit
has active process instances and prevents its undeployment.
That's the default operation when no other is supplied.runtimeDataService
- a RuntimeDataService
to query the process instancespublic static Function<org.jbpm.services.api.model.DeploymentUnit,Boolean> abortUnitActiveProcessInstances(org.jbpm.services.api.RuntimeDataService runtimeDataService, org.jbpm.services.api.DeploymentService deploymentService)
DeploymentUnit
has active process instances instances, aborts them and,
if nothing wrong happened, lets the undeployment operation continue.runtimeDataService
- a RuntimeDataService
to query the process instancesdeploymentService
- a DeploymentService
to provide access to the deployed unit.Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.