Interface ProcessLevelStartEventActivityBehavior
- All Known Implementing Classes:
EventRegistryStartEventActivityBehavior, MessageStartEventActivityBehavior, SignalStartEventActivityBehavior, TimerStartEventActivityBehavior
public interface ProcessLevelStartEventActivityBehavior
Implemented by an
ActivityBehavior attached to a process-level (i.e. NOT inside an
EventSubProcess) StartEvent that registers a deploy-time artifact — an event
subscription, a start timer job, etc. — and removes or updates that artifact when the process
definition is superseded by a new version.
Both deploy(ProcessLevelStartEventDeployContext) and undeploy(ProcessLevelStartEventUndeployContext) must be implemented; a behavior that opts into the
deploy-time lifecycle owns both halves of it. Built-in start event types that don't register
anything (e.g. none / error) simply don't implement this interface.
Custom integrations supplying their own EventDefinition + parse handler + behavior pick
up deploy-time registration by implementing this interface — no change in
BpmnDeploymentHelper is required.
-
Method Summary
Modifier and TypeMethodDescriptionvoidRegister the deploy-time artifact (event subscription, timer job, etc.) for this start event when its process definition is freshly deployed.voidRemove or update the deploy-time artifact for this start event when its process definition is superseded by a new version.
-
Method Details
-
deploy
Register the deploy-time artifact (event subscription, timer job, etc.) for this start event when its process definition is freshly deployed. -
undeploy
Remove or update the deploy-time artifact for this start event when its process definition is superseded by a new version. Called on the previous (now-superseded) process definition's start events.
-