public class Workflow extends BaseWorkflow implements Serializable
| Constructor and Description |
|---|
Workflow()
No args constructor for use in serialization
|
Workflow(String id,
String name,
String version,
List<State> states) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getAnnotations()
List of helpful terms describing the workflows intended purpose, subject areas, or other important qualities
|
Auth |
getAuth()
Workflow Auth definitions
|
Constants |
getConstants()
Workflow constants definitions
|
DataInputSchema |
getDataInputSchema()
Workflow data input schema
|
String |
getDescription()
Workflow description
|
Errors |
getErrors()
Workflow error definitions
|
Events |
getEvents()
Workflow event definitions
|
String |
getExpressionLang()
Identifies the expression language used for workflow expressions.
|
List<Extension> |
getExtensions()
Workflow Extensions
|
Functions |
getFunctions()
Workflow function definitions
|
String |
getId()
Workflow unique identifier
(Required)
|
String |
getKey()
Workflow Domain-specific identifier
|
Map<String,String> |
getMetadata()
Metadata
|
String |
getName()
Workflow name
(Required)
|
Retries |
getRetries()
Workflow retry definitions
|
Secrets |
getSecrets()
Workflow secrets definitions
|
String |
getSpecVersion()
Serverless Workflow schema version
|
Start |
getStart()
State start definition
|
List<State> |
getStates()
State Definitions
(Required)
|
TimeoutsDefinition |
getTimeouts()
Timeouts Definition
|
String |
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 qualities
|
void |
setAuth(Auth auth)
Workflow Auth definitions
|
void |
setAutoRetries(boolean autoRetries)
If set to true, actions should automatically be retried on unchecked errors.
|
void |
setConstants(Constants constants)
Workflow constants definitions
|
void |
setDataInputSchema(DataInputSchema dataInputSchema)
Workflow data input schema
|
void |
setDescription(String description)
Workflow description
|
void |
setErrors(Errors errors)
Workflow error definitions
|
void |
setEvents(Events events)
Workflow event definitions
|
void |
setExpressionLang(String expressionLang)
Identifies the expression language used for workflow expressions.
|
void |
setExtensions(List<Extension> extensions)
Workflow Extensions
|
void |
setFunctions(Functions functions)
Workflow function definitions
|
void |
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 |
setKey(String key)
Workflow Domain-specific identifier
|
void |
setMetadata(Map<String,String> metadata)
Metadata
|
void |
setName(String name)
Workflow name
(Required)
|
void |
setRetries(Retries retries)
Workflow retry definitions
|
void |
setSecrets(Secrets secrets)
Workflow secrets definitions
|
void |
setSpecVersion(String specVersion)
Serverless Workflow schema version
|
void |
setStart(Start start)
State start definition
|
void |
setStates(List<State> states)
State Definitions
(Required)
|
void |
setTimeouts(TimeoutsDefinition timeouts)
Timeouts Definition
|
void |
setVersion(String version)
Workflow version
(Required)
|
Workflow |
withAnnotations(List<String> annotations) |
Workflow |
withAuth(Auth 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 |
withKey(String key) |
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) |
fromSource, toJson, toYamlpublic String getId()
public void setId(String id)
public String getKey()
public void setKey(String key)
public String getName()
public void setName(String name)
public String getDescription()
public void setDescription(String description)
public String getVersion()
public void setVersion(String version)
public List<String> getAnnotations()
public void setAnnotations(List<String> annotations)
public DataInputSchema getDataInputSchema()
public void setDataInputSchema(DataInputSchema dataInputSchema)
public Workflow withDataInputSchema(DataInputSchema dataInputSchema)
public Start getStart()
public void setStart(Start start)
public String getSpecVersion()
public void setSpecVersion(String specVersion)
public String getExpressionLang()
public void setExpressionLang(String expressionLang)
public boolean isKeepActive()
public void setKeepActive(boolean keepActive)
public Workflow withKeepActive(boolean keepActive)
public boolean isAutoRetries()
public void setAutoRetries(boolean autoRetries)
public Workflow withAutoRetries(boolean autoRetries)
public Events getEvents()
public void setEvents(Events events)
public Functions getFunctions()
public void setFunctions(Functions functions)
public Errors getErrors()
public void setErrors(Errors errors)
public Retries getRetries()
public void setRetries(Retries retries)
public Secrets getSecrets()
public void setSecrets(Secrets secrets)
public Constants getConstants()
public void setConstants(Constants constants)
public TimeoutsDefinition getTimeouts()
public void setTimeouts(TimeoutsDefinition timeouts)
public Workflow withTimeouts(TimeoutsDefinition timeouts)
public Auth getAuth()
public void setAuth(Auth auth)
Copyright © 2020–2023 CNCF. All rights reserved.