Class Step
- java.lang.Object
-
- fr.gouv.vitam.common.model.processing.Step
-
- Direct Known Subclasses:
ProcessStep
public class Step extends java.lang.Object
Step Object in process workflow
-
-
Constructor Summary
Constructors Constructor Description Step()
Step(java.lang.String id, java.lang.String workerGroupId, java.lang.String stepName, ProcessBehavior behavior, Distribution distribution, java.util.List<Action> actions, java.lang.String waitFor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
defaultLifecycleLog(LifecycleState lifecycleLog)
java.util.List<Action>
getActions()
getActionsProcessBehavior
getBehavior()
Distribution
getDistribution()
getDistributionjava.lang.String
getId()
PauseOrCancelAction
getPauseOrCancelAction()
java.lang.String
getStepName()
ItemStatus
getStepResponses()
java.lang.String
getWaitFor()
java.lang.String
getWorkerGroupId()
boolean
isBlocking()
boolean
isFinally()
Step
setActions(java.util.List<Action> actions)
Step
setBehavior(ProcessBehavior behavior)
Step
setDistribution(Distribution distribution)
setDistributionvoid
setId(java.lang.String id)
Step
setPauseOrCancelAction(PauseOrCancelAction pauseOrCancelAction)
Step
setStepName(java.lang.String stepName)
Step
setStepResponses(ItemStatus stepResponses)
void
setWaitFor(java.lang.String waitFor)
Step
setWorkerGroupId(java.lang.String workerGroupId)
boolean
shallStop()
-
-
-
Constructor Detail
-
Step
public Step()
-
Step
public Step(java.lang.String id, java.lang.String workerGroupId, java.lang.String stepName, ProcessBehavior behavior, Distribution distribution, java.util.List<Action> actions, java.lang.String waitFor)
-
-
Method Detail
-
getId
public java.lang.String getId()
-
setId
public void setId(java.lang.String id)
-
getActions
public java.util.List<Action> getActions()
getActions- Returns:
- the list of actions to be executed for the step
-
setActions
public Step setActions(java.util.List<Action> actions)
- Parameters:
actions
- the list of actions- Returns:
- the updated Step object
-
getWorkerGroupId
public java.lang.String getWorkerGroupId()
- Returns:
- workerGroupId the id of the WorkerGroup for the step
-
setWorkerGroupId
public Step setWorkerGroupId(java.lang.String workerGroupId)
- Parameters:
workerGroupId
- the id of the WorkerGroup for the step- Returns:
- the updated Step object
-
getStepName
public java.lang.String getStepName()
- Returns:
- the step Name
-
setStepName
public Step setStepName(java.lang.String stepName)
- Parameters:
stepName
- the step Name to set- Returns:
- the updated Step object
-
getDistribution
public Distribution getDistribution()
getDistribution- Returns:
- the distribution object of step
-
setDistribution
public Step setDistribution(Distribution distribution)
setDistribution- Parameters:
distribution
- object- Returns:
- the Step instance with distribution value setted
-
getBehavior
public ProcessBehavior getBehavior()
- Returns:
- the stepType
-
setBehavior
public Step setBehavior(ProcessBehavior behavior)
- Parameters:
behavior
- the Process Behavior to set- Returns:
- the updated Step
-
getStepResponses
public ItemStatus getStepResponses()
- Returns:
- the stepResponses
-
setStepResponses
public Step setStepResponses(ItemStatus stepResponses)
- Parameters:
stepResponses
- the stepResponses to set- Returns:
- this
-
shallStop
public boolean shallStop()
- Returns:
- True if the step Must be Stopped
-
isBlocking
public boolean isBlocking()
- Returns:
- True if this step is blocking
-
isFinally
public boolean isFinally()
-
getPauseOrCancelAction
public PauseOrCancelAction getPauseOrCancelAction()
-
setPauseOrCancelAction
public Step setPauseOrCancelAction(PauseOrCancelAction pauseOrCancelAction)
-
defaultLifecycleLog
public void defaultLifecycleLog(LifecycleState lifecycleLog)
-
getWaitFor
public java.lang.String getWaitFor()
-
setWaitFor
public void setWaitFor(java.lang.String waitFor)
-
-