Module io.automatiko.engine.api
Interface EndOfInstanceStrategy
public interface EndOfInstanceStrategy
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidperform(ProcessInstance<?> instance) Performs additional work associated with the strategy on given instancebooleanIndicates if the instance should be removed from the storagebooleanIndicates if the instance should be updated in the storage
-
Method Details
-
shouldInstanceBeRemoved
boolean shouldInstanceBeRemoved()Indicates if the instance should be removed from the storage- Returns:
- true for removing it otherwise false
-
shouldInstanceBeUpdated
boolean shouldInstanceBeUpdated()Indicates if the instance should be updated in the storage- Returns:
- true for updating it otherwise false
-
perform
Performs additional work associated with the strategy on given instance- Parameters:
instance- instance that is at its end
-