public class PreUndeployOperations extends Object
DeploymentService#undeploy(DeploymentUnit, Function) | Constructor and Description |
|---|
PreUndeployOperations() |
| Modifier and Type | Method and Description |
|---|---|
static Function<DeploymentUnit,Boolean> |
abortUnitActiveProcessInstances(RuntimeDataService runtimeDataService,
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<DeploymentUnit,Boolean> |
checkActiveProcessInstances(RuntimeDataService runtimeDataService)
Returns a function that checks if a given
DeploymentUnit has active process instances and prevents its undeployment. |
static Function<DeploymentUnit,Boolean> |
doNothing()
Returns a function that bypasses the check and always allows to undeploy.
|
public static Function<DeploymentUnit,Boolean> checkActiveProcessInstances(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<DeploymentUnit,Boolean> abortUnitActiveProcessInstances(RuntimeDataService runtimeDataService, 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.public static Function<DeploymentUnit,Boolean> doNothing()
Copyright © 2001–2021 JBoss by Red Hat. All rights reserved.