Annotation Interface Workflow


@Target({METHOD,TYPE}) @Retention(RUNTIME) @Documented public @interface Workflow
Annotation to define a class/interface as Restate Workflow. This triggers the code generation of the related Client class and the ServiceDefinitionFactory. When defining a class/interface as workflow, you must annotate one of its methods too as Workflow.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    use the Name annotation instead.
  • Element Details

    • name

      @Deprecated(since="2.0", forRemoval=true) String name
      Deprecated, for removal: This API element is subject to removal in a future version.
      use the Name annotation instead. Note: if you were using a name override, this won't influence anymore the prefix of the generated class.
      Default:
      ""