Annotation Interface QueryMethod
Indicates that the method is a query method. Query method can be used to query a workflow state
by external process at any time during its execution. This annotation applies only to workflow
interface methods.
Query methods must never change any workflow state including starting activities or block threads in any way.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionShort description of the query type.Name of the query type.
-
Element Details
-
name
String nameName of the query type. Default is method name.Be careful about names that contain special characters. These names can be used as metric tags. And systems like prometheus ignore metrics which have tags with unsupported characters.
Name cannot start with __temporal as it is reserved for internal use. The name also cannot be __stack_trace or __enhanced_stack_trace as they are reserved for internal use.
- Default:
""
-
description
-