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 qualitiesAuthDefinition
getAuth()
Auth DefinitionConstants
getConstants()
Workflow constants definitionsDataInputSchema
getDataInputSchema()
Workflow data input schemaString
getDescription()
Workflow descriptionErrors
getErrors()
Workflow error definitionsEvents
getEvents()
Workflow event definitionsString
getExpressionLang()
Identifies the expression language used for workflow expressions.List<Extension>
getExtensions()
Workflow ExtensionsFunctions
getFunctions()
Workflow function definitionsString
getId()
Workflow unique identifier (Required)Map<String,String>
getMetadata()
MetadataString
getName()
Workflow name (Required)Retries
getRetries()
Workflow retry definitionsSecrets
getSecrets()
Workflow secrets definitionsString
getSpecVersion()
Serverless Workflow schema versionStart
getStart()
State start definitionList<State>
getStates()
State Definitions (Required)TimeoutsDefinition
getTimeouts()
Timeouts DefinitionString
getVersion()
Workflow version (Required)boolean
isAutoRetries()
If set to true, actions should automatically be retried on unchecked errors.boolean
isKeepActive()
If 'true', workflow instances is not terminated when there are no active execution paths.void
setAnnotations(List<String> annotations)
List of helpful terms describing the workflows intended purpose, subject areas, or other important qualitiesvoid
setAuth(AuthDefinition auth)
Auth Definitionvoid
setAutoRetries(boolean autoRetries)
If set to true, actions should automatically be retried on unchecked errors.void
setConstants(Constants constants)
Workflow constants definitionsvoid
setDataInputSchema(DataInputSchema dataInputSchema)
Workflow data input schemavoid
setDescription(String description)
Workflow descriptionvoid
setErrors(Errors errors)
Workflow error definitionsvoid
setEvents(Events events)
Workflow event definitionsvoid
setExpressionLang(String expressionLang)
Identifies the expression language used for workflow expressions.void
setExtensions(List<Extension> extensions)
Workflow Extensionsvoid
setFunctions(Functions functions)
Workflow function definitionsvoid
setId(String id)
Workflow unique identifier (Required)void
setKeepActive(boolean keepActive)
If 'true', workflow instances is not terminated when there are no active execution paths.void
setMetadata(Map<String,String> metadata)
Metadatavoid
setName(String name)
Workflow name (Required)void
setRetries(Retries retries)
Workflow retry definitionsvoid
setSecrets(Secrets secrets)
Workflow secrets definitionsvoid
setSpecVersion(String specVersion)
Serverless Workflow schema versionvoid
setStart(Start start)
State start definitionvoid
setStates(List<State> states)
State Definitions (Required)void
setTimeouts(TimeoutsDefinition timeouts)
Timeouts Definitionvoid
setVersion(String version)
Workflow version (Required)Workflow
withAnnotations(List<String> annotations)
Workflow
withAuth(AuthDefinition auth)
Workflow
withAutoRetries(boolean autoRetries)
Workflow
withConstants(Constants constants)
Workflow
withDataInputSchema(DataInputSchema dataInputSchema)
Workflow
withDescription(String description)
Workflow
withErrors(Errors errors)
Workflow
withEvents(Events events)
Workflow
withExpressionLang(String expressionLang)
Workflow
withExtensions(List<Extension> extensions)
Workflow
withFunctions(Functions functions)
Workflow
withId(String id)
Workflow
withKeepActive(boolean keepActive)
Workflow
withMetadata(Map<String,String> metadata)
Workflow
withName(String name)
Workflow
withRetries(Retries retries)
Workflow
withSecrets(Secrets secrets)
Workflow
withSpecVersion(String specVersion)
Workflow
withStart(Start start)
Workflow
withStates(List<State> states)
Workflow
withTimeouts(TimeoutsDefinition timeouts)
Workflow
withVersion(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 AuthDefinition getAuth()
Auth Definition
-
setAuth
public void setAuth(AuthDefinition auth)
Auth Definition
-
withAuth
public Workflow withAuth(AuthDefinition auth)
-
-