WorkflowInterface
Marks a class or interface as a Workflow.
-
Annotation
-
-
NamedArgumentConstructor
-
-
Target
-
({ "CLASS" })
To control memory usage of workflow instances you can implement Destroyable interface in the workflow class.
The Destroyable::destroy method will be called when workflow instance is not needed anymore
(for example, when workflow execution is completed, failed or need to be evicted from memory).
You can use this method to help with memory management by breaking circular references.
Note: the Workflow logger may not emit logs from within the destroy method.
Table of Contents
#[Attribute]
#[Attribute]
#[NamedArgumentConstructor]
#[NamedArgumentConstructor]