Class ProcessWorkflow
- java.lang.Object
-
- fr.gouv.vitam.processing.common.model.ProcessWorkflow
-
public class ProcessWorkflow extends java.lang.Object
Proccess Workflow contains a different operations and status attribute
-
-
Constructor Summary
Constructors Constructor Description ProcessWorkflow()
ProcessWorkflow(LogbookTypeProcess logbookTypeProcess, StatusCode status, ProcessState state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getApplicationId()
java.lang.String
getContextId()
LogbookTypeProcess
getLogbookTypeProcess()
java.lang.String
getMessageIdentifier()
java.lang.String
getOperationId()
java.util.Map<java.lang.String,java.lang.String>
getParameters()
PauseRecover
getPauseRecover()
java.time.LocalDateTime
getProcessCompletedDate()
java.util.Date
getProcessDate()
java.lang.String
getProdService()
ProcessState
getState()
Set the state of the workflow processStatusCode
getStatus()
get the status of the processWorkflowjava.util.List<ProcessStep>
getSteps()
ProcessState
getTargetState()
StatusCode
getTargetStatus()
java.lang.Integer
getTenantId()
java.lang.String
getWorkflowId()
boolean
isStepByStep()
ProcessWorkflow
setApplicationId(java.lang.String applicationId)
ProcessWorkflow
setContextId(java.lang.String contextId)
ProcessWorkflow
setLogbookTypeProcess(LogbookTypeProcess logbookTypeProcess)
ProcessWorkflow
setMessageIdentifier(java.lang.String messageIdentifier)
ProcessWorkflow
setOperationId(java.lang.String operationId)
ProcessWorkflow
setParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
ProcessWorkflow
setPauseRecover(PauseRecover pauseRecover)
ProcessWorkflow
setProcessCompletedDate(java.time.LocalDateTime processCompletedDate)
ProcessWorkflow
setProcessDate(java.util.Date processDate)
ProcessWorkflow
setProdService(java.lang.String prodService)
ProcessWorkflow
setState(ProcessState state)
Get the state of the workflow processProcessWorkflow
setStatus(StatusCode status)
set the status of the workflowProcessWorkflow
setStepByStep(boolean stepByStep)
ProcessWorkflow
setSteps(java.util.List<ProcessStep> steps)
ProcessWorkflow
setTargetState(ProcessState targetState)
ProcessWorkflow
setTargetStatus(StatusCode targetStatus)
ProcessWorkflow
setTenantId(java.lang.Integer tenantId)
ProcessWorkflow
setWorkflowId(java.lang.String workflowId)
-
-
-
Constructor Detail
-
ProcessWorkflow
public ProcessWorkflow()
-
ProcessWorkflow
public ProcessWorkflow(LogbookTypeProcess logbookTypeProcess, StatusCode status, ProcessState state)
-
-
Method Detail
-
getState
public ProcessState getState()
Set the state of the workflow process- Returns:
- ProcessState
-
setState
public ProcessWorkflow setState(ProcessState state)
Get the state of the workflow process- Parameters:
state
-
-
getTargetState
public ProcessState getTargetState()
-
setTargetState
public ProcessWorkflow setTargetState(ProcessState targetState)
-
getSteps
public java.util.List<ProcessStep> getSteps()
-
setSteps
public ProcessWorkflow setSteps(java.util.List<ProcessStep> steps)
-
getStatus
public StatusCode getStatus()
get the status of the processWorkflow- Returns:
- StatusCode
-
setStatus
public ProcessWorkflow setStatus(StatusCode status)
set the status of the workflow- Parameters:
status
-- Returns:
- this
-
getTargetStatus
public StatusCode getTargetStatus()
-
setTargetStatus
public ProcessWorkflow setTargetStatus(StatusCode targetStatus)
-
isStepByStep
public boolean isStepByStep()
-
setStepByStep
public ProcessWorkflow setStepByStep(boolean stepByStep)
-
getProcessDate
public java.util.Date getProcessDate()
- Returns:
- the processDate
-
setProcessDate
public ProcessWorkflow setProcessDate(java.util.Date processDate)
- Parameters:
processDate
- the processDate to set- Returns:
- this
-
getOperationId
public java.lang.String getOperationId()
- Returns:
- the operationId
-
setOperationId
public ProcessWorkflow setOperationId(java.lang.String operationId)
- Parameters:
operationId
- the operationId to set- Returns:
- this
-
getMessageIdentifier
public java.lang.String getMessageIdentifier()
- Returns:
- the messageIdentifier
-
setMessageIdentifier
public ProcessWorkflow setMessageIdentifier(java.lang.String messageIdentifier)
- Parameters:
messageIdentifier
- the messageIdentifier to set- Returns:
- this
-
getProdService
public java.lang.String getProdService()
- Returns:
- the prodService
-
setProdService
public ProcessWorkflow setProdService(java.lang.String prodService)
- Parameters:
prodService
- the prodService to set- Returns:
- this
-
getLogbookTypeProcess
public LogbookTypeProcess getLogbookTypeProcess()
- Returns:
- the logbookTypeProcess
-
setLogbookTypeProcess
public ProcessWorkflow setLogbookTypeProcess(LogbookTypeProcess logbookTypeProcess)
- Parameters:
logbookTypeProcess
- the logbookTypeProcess- Returns:
- this
-
getTenantId
public java.lang.Integer getTenantId()
- Returns:
- the tenant
-
setTenantId
public ProcessWorkflow setTenantId(java.lang.Integer tenantId)
- Parameters:
tenantId
- to set- Returns:
- this
-
getWorkflowId
public java.lang.String getWorkflowId()
- Returns:
- the workflow ID
-
setWorkflowId
public ProcessWorkflow setWorkflowId(java.lang.String workflowId)
- Parameters:
workflowId
- the workflow ID- Returns:
- current instance
-
getContextId
public java.lang.String getContextId()
- Returns:
- The context id
-
setContextId
public ProcessWorkflow setContextId(java.lang.String contextId)
- Parameters:
contextId
- the context ID- Returns:
- current instance
-
getApplicationId
public java.lang.String getApplicationId()
-
setApplicationId
public ProcessWorkflow setApplicationId(java.lang.String applicationId)
-
getProcessCompletedDate
public java.time.LocalDateTime getProcessCompletedDate()
-
setProcessCompletedDate
public ProcessWorkflow setProcessCompletedDate(java.time.LocalDateTime processCompletedDate)
-
getPauseRecover
public PauseRecover getPauseRecover()
-
setPauseRecover
public ProcessWorkflow setPauseRecover(PauseRecover pauseRecover)
-
getParameters
public java.util.Map<java.lang.String,java.lang.String> getParameters()
-
setParameters
public ProcessWorkflow setParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
-
-