Package org.nuclos.api.rule
Interface StateChangeFinalRule
@RuleType(name="nuclos.ruletype.statechangefinalrule.name",
description="nuclos.ruletype.statechangefinalrule.description")
public interface StateChangeFinalRule
StateChangeFinalRule
is the interface that should be used to make an rule
applicable for Afterwards-StateChange-Events.
Classes implementing this interface can be attached to state transitions. In case of an StateChange-Event the method changeStateFinal is called.
- Author:
- Matthias Reichart
-
Method Summary
Modifier and TypeMethodDescriptionvoid
changeStateFinal
(StateChangeContext context) StateChangeContext
is the context providing all attributes and methods that are relevant for StateChange-operations.
-
Method Details
-
changeStateFinal
StateChangeContext
is the context providing all attributes and methods that are relevant for StateChange-operations.To get the
BusinessObject
the method getBusinessObject() can be called.Note: Only
BusinessObject
/ Entities that are 'stateful', i.e. using a statemodel - can be used in StateChange-Event.If a
BusinessObject
cannot be used in this context check wether the entity is set 'use a statemodel'- Parameters:
context
-- Throws:
BusinessException
-