Annotation Interface Workflow
Annotation to mark the workflow definition method.
- Since:
- 5.4.0
- Author:
- Simon Zambrovski
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionSpecifies the property of the trigger event defining the workflow id.Class<? extends WorkflowIdProvider> Specifies the type of id property provider.String[]List of start conditions expressed as associations.Class<?> Specifies the class of the event to be used as a starting trigger.Specifies the qualified name of the event to be used as a starting trigger.Specifies the name of the workflow.Specifies the namespace for workflow events.Workflow definition version (semver, e.g. -
Field Summary
Fields
-
Field Details
-
ATTR_ID_PROPERTY
- See Also:
-
ATTR_ID_PROPERTY_PROVIDER
- See Also:
-
ATTR_START_ON_EVENT_NAME
- See Also:
-
ATTR_START_ON_EVENT_CLASS
- See Also:
-
ATTR_START_ON_CONDITIONS
- See Also:
-
ATTR_WORKFLOW_NAME
- See Also:
-
ATTR_WORKFLOW_STATUS
- See Also:
-
ATTR_WORKFLOW_NAMESPACE
- See Also:
-
ATTR_WORKFLOW_VERSION
- See Also:
-
-
Element Details
-
workflowName
String workflowNameSpecifies the name of the workflow.- Returns:
- workflow name, defaults to empty string, meaning that the full-qualified name and method name of the class is used.
- Default:
""
-
workflowNamespace
String workflowNamespaceSpecifies the namespace for workflow events.- Returns:
- namespace for all workflow events, defaults to empty string.
- Default:
""
-
startOnEventName
String startOnEventNameSpecifies the qualified name of the event to be used as a starting trigger. If this property is set, thestartOnEventClass()property must not be set.- Returns:
- qualified name of the event, defaults to empty string.
- Default:
""
-
startOnEventClass
Class<?> startOnEventClassSpecifies the class of the event to be used as a starting trigger. If this property is set, thestartOnEventName()property must not be set.- Returns:
- class of the event, defaults to Void.class.
- Default:
java.lang.Void.class
-
startOnConditions
String[] startOnConditionsList of start conditions expressed as associations.- Returns:
- array of value associations.
- Default:
{}
-
idProperty
String idPropertySpecifies the property of the trigger event defining the workflow id.Either this property or
idPropertyProvider()must be specified.- Returns:
- name of the property, defaults to empty string.
- Default:
""
-
idPropertyProvider
Class<? extends WorkflowIdProvider> idPropertyProviderSpecifies the type of id property provider.Either this property or
idProperty()must be specified.- Returns:
- id property provider type.
- Default:
io.axoniq.framework.workflow.runtime.execution.PayloadPropertyWorkflowIdProvider.class
-
workflowVersion
String workflowVersionWorkflow definition version (semver, e.g."0.0.2"). New instances start on the highest registered version; in-flight instances replay on the version they were started under.Defaults to
Version.DEFAULT_VERSION("0.0.1").- Returns:
- workflow definition version.
- Default:
"0.0.1"
-