Class WorkFlow


  • public class WorkFlow
    extends java.lang.Object
    workflow class used for deserialize JSON file (root element)
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.List<Step> steps
      steps properties, must be defined in JSON file(required)
    • Constructor Summary

      Constructors 
      Constructor Description
      WorkFlow()  
      WorkFlow​(java.lang.String id, java.lang.String name, java.lang.String identifier, java.lang.String typeProc, java.lang.String comment, LifecycleState lifecycleLog, java.util.List<Step> steps)  
    • Field Detail

      • steps

        protected java.util.List<Step> steps
        steps properties, must be defined in JSON file(required)
    • Constructor Detail

      • WorkFlow

        public WorkFlow()
      • WorkFlow

        public WorkFlow​(java.lang.String id,
                        java.lang.String name,
                        java.lang.String identifier,
                        java.lang.String typeProc,
                        java.lang.String comment,
                        LifecycleState lifecycleLog,
                        java.util.List<Step> steps)
    • Method Detail

      • of

        public static WorkFlow of​(java.lang.String id,
                                  java.lang.String identifier,
                                  java.lang.String evTypeProc)
      • getId

        public java.lang.String getId()
        getId, get id of workflow
        Returns:
        the workflowID
      • setId

        public WorkFlow setId​(java.lang.String id)
        setId, set the id of workflow
        Parameters:
        id - as String
        Returns:
        the WorkFlow instance with id setted
      • getName

        public java.lang.String getName()
        getName, get name of workflow
        Returns:
        the workflowName
      • setName

        public WorkFlow setName​(java.lang.String name)
        setName, set the name of workflow
        Parameters:
        name - as String
        Returns:
        the WorkFlow instance with name setted
      • getIdentifier

        public java.lang.String getIdentifier()
        getIdentifier, get identifier of workflow
        Returns:
        the workflowIdentifier
      • setIdentifier

        public WorkFlow setIdentifier​(java.lang.String identifier)
        setIdentifier, set the identifier of workflow
        Parameters:
        identifier - as String
        Returns:
        the WorkFlow instance with identifier setted
      • getTypeProc

        public java.lang.String getTypeProc()
        getTypeProc, get category of workflow
        Returns:
        the workflowType
      • setTypeProc

        public WorkFlow setTypeProc​(java.lang.String typeProc)
        setTypeProc, set the type of workflow
        Parameters:
        typeProc - as String
        Returns:
        the WorkFlow instance with type setted
      • getComment

        public java.lang.String getComment()
        getComment
        Returns:
        comments on workflow
      • getSteps

        public java.util.List<Step> getSteps()
        getSteps(), get all step of workflow
        Returns:
        the list of type Step
      • setSteps

        public WorkFlow setSteps​(java.util.List<Step> steps)
        setSteps, set the steps to workflow
        Parameters:
        steps - as List
        Returns:
        the Workflow instance with steps setted
      • setComment

        public WorkFlow setComment​(java.lang.String comments)
        setComment, set the comment for workflow
        Parameters:
        comments - of the workflow
        Returns:
        the updated Workflow object
      • toString

        public java.lang.String toString()
        toString : get the workflowId and comments on workflow as String
        Overrides:
        toString in class java.lang.Object