Class Step
java.lang.Object
org.tasktide.core.model.collection.Step
- All Implemented Interfaces:
TaskTideModel<Step>
Model class for a collection of work items as metadata
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet annotationsReturn workflow idgetId()TaskTideModelinterface method to return IdgetState()Return current of modelGet step IdGet step namegetValueFromField(String field) TaskTideModelinterface get the value from the required fieldGet parent workflow IdGet parent workflow IdvoidReset modelvoidSet providedCustomAnnotationvoidSet step IdvoidsetStepName(String stepName) Set step namevoidsetWorkflowId(String workflowId) Set parent workflow IdvoidsetWorkflowId(Workflow workflow) Set workflowtoJson()TaskTideModelinterface method to represent as JsonDocSerialize to a human readable formatted JSON stringSerialize to JSON stringtoString()Represent as string
-
Constructor Details
-
Step
public Step()Null value constructor -
Step
-
Step
Constructor for JSON deserialization- Parameters:
stepId-stepName-workflowId-anno-
-
-
Method Details
-
getAnnotations
Get annotations- Specified by:
getAnnotationsin interfaceTaskTideModel<Step>- Returns:
CustomAnnotation
-
setAnnotations
Set providedCustomAnnotation- Specified by:
setAnnotationsin interfaceTaskTideModel<Step>- Parameters:
anno-
-
resetModel
-
getStepId
-
setStepId
-
getWorkflowId
-
setWorkflowId
-
getWorkflow
-
setWorkflowId
-
getCollection
Return workflow id- Specified by:
getCollectionin interfaceTaskTideModel<Step>- Returns:
-
getStepName
-
setStepName
-
getState
Description copied from interface:TaskTideModelReturn current of model- Specified by:
getStatein interfaceTaskTideModel<Step>- Returns:
- String
-
toString
-
toJsonString
-
toJsonDoc
Serialize to a human readable formatted JSON string- Specified by:
toJsonDocin interfaceTaskTideModel<Step>- Returns:
- String
-
toJson
TaskTideModelinterface method to represent as JsonDoc- Specified by:
toJsonin interfaceTaskTideModel<Step>- Returns:
- String
-
getId
TaskTideModelinterface method to return Id- Specified by:
getIdin interfaceTaskTideModel<Step>- Returns:
- String
-
getValueFromField
TaskTideModelinterface get the value from the required field- Specified by:
getValueFromFieldin interfaceTaskTideModel<Step>- Parameters:
field-- Returns:
- Object
-