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 String
getDataInputSchema()
URI to JSON Schema that workflow data input adheres toString
getDataOutputSchema()
URI to JSON Schema that workflow data output adheres toString
getDescription()
Workflow descriptionEvents
getEvents()
Workflow event definitionsList<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 definitionsString
getSchemaVersion()
Serverless Workflow schema versionList<State>
getStates()
State Definitions (Required)String
getVersion()
Workflow version (Required)void
setDataInputSchema(String dataInputSchema)
URI to JSON Schema that workflow data input adheres tovoid
setDataOutputSchema(String dataOutputSchema)
URI to JSON Schema that workflow data output adheres tovoid
setDescription(String description)
Workflow descriptionvoid
setEvents(Events events)
Workflow event definitionsvoid
setExtensions(List<Extension> extensions)
Workflow Extensionsvoid
setFunctions(Functions functions)
Workflow function definitionsvoid
setId(String id)
Workflow unique identifier (Required)void
setMetadata(Map<String,String> metadata)
Metadatavoid
setName(String name)
Workflow name (Required)void
setRetries(Retries retries)
Workflow retry definitionsvoid
setSchemaVersion(String schemaVersion)
Serverless Workflow schema versionvoid
setStates(List<State> states)
State Definitions (Required)void
setVersion(String version)
Workflow version (Required)Workflow
withDataInputSchema(String dataInputSchema)
Workflow
withDataOutputSchema(String dataOutputSchema)
Workflow
withDescription(String description)
Workflow
withEvents(Events events)
Workflow
withExtensions(List<Extension> extensions)
Workflow
withFunctions(Functions functions)
Workflow
withId(String id)
Workflow
withMetadata(Map<String,String> metadata)
Workflow
withName(String name)
Workflow
withRetries(Retries retries)
Workflow
withSchemaVersion(String schemaVersion)
Workflow
withStates(List<State> states)
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)
-
getSchemaVersion
public String getSchemaVersion()
Serverless Workflow schema version
-
setSchemaVersion
public void setSchemaVersion(String schemaVersion)
Serverless Workflow schema version
-
getDataInputSchema
public String getDataInputSchema()
URI to JSON Schema that workflow data input adheres to
-
setDataInputSchema
public void setDataInputSchema(String dataInputSchema)
URI to JSON Schema that workflow data input adheres to
-
getDataOutputSchema
public String getDataOutputSchema()
URI to JSON Schema that workflow data output adheres to
-
setDataOutputSchema
public void setDataOutputSchema(String dataOutputSchema)
URI to JSON Schema that workflow data output adheres to
-
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
-
getRetries
public Retries getRetries()
Workflow retry definitions
-
setRetries
public void setRetries(Retries retries)
Workflow retry definitions
-
-