Package io.serverlessworkflow.api
Class Workflow
- java.lang.Object
-
- io.serverlessworkflow.api.workflow.BaseWorkflow
-
- io.serverlessworkflow.api.Workflow
-
- All Implemented Interfaces:
Serializable
public class Workflow extends BaseWorkflow implements Serializable
Serverless Workflow is a vendor-neutral specification for defining the model of workflows responsible for orchestrating event-driven serverless applications.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getAnnotations()List of helpful terms describing the workflows intended purpose, subject areas, or other important qualitiesAuthgetAuth()Workflow Auth definitionsConstantsgetConstants()Workflow constants definitionsDataInputSchemagetDataInputSchema()Workflow data input schemaStringgetDescription()Workflow descriptionErrorsgetErrors()Workflow error definitionsEventsgetEvents()Workflow event definitionsStringgetExpressionLang()Identifies the expression language used for workflow expressions.List<Extension>getExtensions()Workflow ExtensionsFunctionsgetFunctions()Workflow function definitionsStringgetId()Workflow unique identifier (Required)Map<String,String>getMetadata()MetadataStringgetName()Workflow name (Required)RetriesgetRetries()Workflow retry definitionsSecretsgetSecrets()Workflow secrets definitionsStringgetSpecVersion()Serverless Workflow schema versionStartgetStart()State start definitionList<State>getStates()State Definitions (Required)TimeoutsDefinitiongetTimeouts()Timeouts DefinitionStringgetVersion()Workflow version (Required)booleanisAutoRetries()If set to true, actions should automatically be retried on unchecked errors.booleanisKeepActive()If 'true', workflow instances is not terminated when there are no active execution paths.voidsetAnnotations(List<String> annotations)List of helpful terms describing the workflows intended purpose, subject areas, or other important qualitiesvoidsetAuth(Auth auth)Workflow Auth definitionsvoidsetAutoRetries(boolean autoRetries)If set to true, actions should automatically be retried on unchecked errors.voidsetConstants(Constants constants)Workflow constants definitionsvoidsetDataInputSchema(DataInputSchema dataInputSchema)Workflow data input schemavoidsetDescription(String description)Workflow descriptionvoidsetErrors(Errors errors)Workflow error definitionsvoidsetEvents(Events events)Workflow event definitionsvoidsetExpressionLang(String expressionLang)Identifies the expression language used for workflow expressions.voidsetExtensions(List<Extension> extensions)Workflow ExtensionsvoidsetFunctions(Functions functions)Workflow function definitionsvoidsetId(String id)Workflow unique identifier (Required)voidsetKeepActive(boolean keepActive)If 'true', workflow instances is not terminated when there are no active execution paths.voidsetMetadata(Map<String,String> metadata)MetadatavoidsetName(String name)Workflow name (Required)voidsetRetries(Retries retries)Workflow retry definitionsvoidsetSecrets(Secrets secrets)Workflow secrets definitionsvoidsetSpecVersion(String specVersion)Serverless Workflow schema versionvoidsetStart(Start start)State start definitionvoidsetStates(List<State> states)State Definitions (Required)voidsetTimeouts(TimeoutsDefinition timeouts)Timeouts DefinitionvoidsetVersion(String version)Workflow version (Required)WorkflowwithAnnotations(List<String> annotations)WorkflowwithAuth(Auth auth)WorkflowwithAutoRetries(boolean autoRetries)WorkflowwithConstants(Constants constants)WorkflowwithDataInputSchema(DataInputSchema dataInputSchema)WorkflowwithDescription(String description)WorkflowwithErrors(Errors errors)WorkflowwithEvents(Events events)WorkflowwithExpressionLang(String expressionLang)WorkflowwithExtensions(List<Extension> extensions)WorkflowwithFunctions(Functions functions)WorkflowwithId(String id)WorkflowwithKeepActive(boolean keepActive)WorkflowwithMetadata(Map<String,String> metadata)WorkflowwithName(String name)WorkflowwithRetries(Retries retries)WorkflowwithSecrets(Secrets secrets)WorkflowwithSpecVersion(String specVersion)WorkflowwithStart(Start start)WorkflowwithStates(List<State> states)WorkflowwithTimeouts(TimeoutsDefinition timeouts)WorkflowwithVersion(String version)-
Methods inherited from class io.serverlessworkflow.api.workflow.BaseWorkflow
fromSource, toJson, toYaml
-
-
-
-
Method Detail
-
getId
public String getId()
Workflow unique identifier (Required)
-
setId
public void setId(String id)
Workflow unique identifier (Required)
-
getName
public String getName()
Workflow name (Required)
-
setName
public void setName(String name)
Workflow name (Required)
-
getDescription
public String getDescription()
Workflow description
-
setDescription
public void setDescription(String description)
Workflow description
-
getVersion
public String getVersion()
Workflow version (Required)
-
setVersion
public void setVersion(String version)
Workflow version (Required)
-
getAnnotations
public List<String> getAnnotations()
List of helpful terms describing the workflows intended purpose, subject areas, or other important qualities
-
setAnnotations
public void setAnnotations(List<String> annotations)
List of helpful terms describing the workflows intended purpose, subject areas, or other important qualities
-
getDataInputSchema
public DataInputSchema getDataInputSchema()
Workflow data input schema
-
setDataInputSchema
public void setDataInputSchema(DataInputSchema dataInputSchema)
Workflow data input schema
-
withDataInputSchema
public Workflow withDataInputSchema(DataInputSchema dataInputSchema)
-
getStart
public Start getStart()
State start definition
-
setStart
public void setStart(Start start)
State start definition
-
getSpecVersion
public String getSpecVersion()
Serverless Workflow schema version
-
setSpecVersion
public void setSpecVersion(String specVersion)
Serverless Workflow schema version
-
getExpressionLang
public String getExpressionLang()
Identifies the expression language used for workflow expressions. Default is 'jq'
-
setExpressionLang
public void setExpressionLang(String expressionLang)
Identifies the expression language used for workflow expressions. Default is 'jq'
-
isKeepActive
public boolean isKeepActive()
If 'true', workflow instances is not terminated when there are no active execution paths. Instance can be terminated via 'terminate end definition' or reaching defined 'execTimeout'
-
setKeepActive
public void setKeepActive(boolean keepActive)
If 'true', workflow instances is not terminated when there are no active execution paths. Instance can be terminated via 'terminate end definition' or reaching defined 'execTimeout'
-
withKeepActive
public Workflow withKeepActive(boolean keepActive)
-
isAutoRetries
public boolean isAutoRetries()
If set to true, actions should automatically be retried on unchecked errors. Default is false
-
setAutoRetries
public void setAutoRetries(boolean autoRetries)
If set to true, actions should automatically be retried on unchecked errors. Default is false
-
withAutoRetries
public Workflow withAutoRetries(boolean autoRetries)
-
getEvents
public Events getEvents()
Workflow event definitions
-
setEvents
public void setEvents(Events events)
Workflow event definitions
-
getFunctions
public Functions getFunctions()
Workflow function definitions
-
setFunctions
public void setFunctions(Functions functions)
Workflow function definitions
-
getErrors
public Errors getErrors()
Workflow error definitions
-
setErrors
public void setErrors(Errors errors)
Workflow error definitions
-
getRetries
public Retries getRetries()
Workflow retry definitions
-
setRetries
public void setRetries(Retries retries)
Workflow retry definitions
-
getSecrets
public Secrets getSecrets()
Workflow secrets definitions
-
setSecrets
public void setSecrets(Secrets secrets)
Workflow secrets definitions
-
getConstants
public Constants getConstants()
Workflow constants definitions
-
setConstants
public void setConstants(Constants constants)
Workflow constants definitions
-
getTimeouts
public TimeoutsDefinition getTimeouts()
Timeouts Definition
-
setTimeouts
public void setTimeouts(TimeoutsDefinition timeouts)
Timeouts Definition
-
withTimeouts
public Workflow withTimeouts(TimeoutsDefinition timeouts)
-
getAuth
public Auth getAuth()
Workflow Auth definitions
-
setAuth
public void setAuth(Auth auth)
Workflow Auth definitions
-
-