Class WorkFlow
- java.lang.Object
-
- fr.gouv.vitam.common.model.processing.WorkFlow
-
public class WorkFlow extends java.lang.Objectworkflow class used for deserialize JSON file (root element)
-
-
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)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetComment()getCommentjava.lang.StringgetId()getId, get id of workflowjava.lang.StringgetIdentifier()getIdentifier, get identifier of workflowLifecycleStategetLifecycleLog()java.lang.StringgetName()getName, get name of workflowjava.util.List<Step>getSteps()getSteps(), get all step of workflowjava.lang.StringgetTypeProc()getTypeProc, get category of workflowstatic WorkFlowof(java.lang.String id, java.lang.String identifier, java.lang.String evTypeProc)WorkFlowsetComment(java.lang.String comments)setComment, set the comment for workflowWorkFlowsetId(java.lang.String id)setId, set the id of workflowWorkFlowsetIdentifier(java.lang.String identifier)setIdentifier, set the identifier of workflowWorkFlowsetLifecycleLog(LifecycleState lifecycleLog)WorkFlowsetName(java.lang.String name)setName, set the name of workflowWorkFlowsetSteps(java.util.List<Step> steps)setSteps, set the steps to workflowWorkFlowsetTypeProc(java.lang.String typeProc)setTypeProc, set the type of workflowjava.lang.StringtoString()toString : get the workflowId and comments on workflow as String
-
-
-
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:
toStringin classjava.lang.Object
-
getLifecycleLog
public LifecycleState getLifecycleLog()
-
setLifecycleLog
public WorkFlow setLifecycleLog(LifecycleState lifecycleLog)
-
-