Interface TaskTideModel<T extends TaskTideModel<T>>

Type Parameters:
T - of WorkItem,Step,Workflow
All Known Implementing Classes:
CustomAnnotation, ItemTask, JobEnvironment, MetricData, MetricProfile, Step, Workflow, WorkItem

public interface TaskTideModel<T extends TaskTideModel<T>>
Interface to support methods around model classes
  • Method Details

    • toJson

      String toJson()
      Represent model as JsonString
      Returns:
      String
    • toJsonDoc

      String toJsonDoc()
      Represent model as JsonDoc
      Returns:
      String
    • getId

      String getId()
      Get Id from model
      Returns:
      String
    • getState

      String getState()
      Return current of model
      Returns:
      String
    • getValueFromField

      Object getValueFromField(String field)
      Get the value of field
      Parameters:
      field -
      Returns:
      Object
    • getCollection

      String getCollection()
      Fetch collection model is, or is part of
      Returns:
      String
    • resetModel

      void resetModel()
      Reset model state
    • getAnnotations

      CustomAnnotation getAnnotations()
      Get CustomAnnotation property
      Returns:
      CustomAnnotation
    • setAnnotations

      void setAnnotations(CustomAnnotation anno)
      Sets CustomAnnotation property
      Parameters:
      anno -