Package io.temporal.workflow
Annotation Type WorkflowInit
-
@Retention(RUNTIME) @Target(CONSTRUCTOR) public @interface WorkflowInitIndicates that the constructor should be used as a workflow initialization method. The constructor annotated with this annotation is called when a new workflow instance is created. The method must be public and take the same arguments as the workflow method. All the same constraints as for workflow methods apply to workflow initialization methods. Any exceptions thrown by the constructor are treated the same as exceptions thrown by the workflow method.Workflow initialization methods are called before the workflow method, signal handlers, update handlers or query handlers.
This annotation applies only to workflow implementation constructors.