public class ProcessResponse extends Object implements EngineResponse
| Constructor and Description |
|---|
ProcessResponse() |
| Modifier and Type | Method and Description |
|---|---|
int |
getErrorNumber() |
static String |
getGlobalProcessOutcomeMessage(List<EngineResponse> responses)
getGlobalProcessOutcomeMessage, return the all outcome message of workflow processing
|
StatusCode |
getGlobalProcessStatusCode(List<EngineResponse> responses)
getGlobalProcessStatusCode, return the global status of workflow processing
|
String |
getMessageIdentifier() |
static String |
getMessageIdentifierFromResponse(List<EngineResponse> responses)
getMessageFromResponse return message id from list of response
|
Map<String,OutcomeMessage> |
getOutcomeMessages()
implementation of getMessage() of EngineResponse API class
|
String |
getProcessId() |
StatusCode |
getStatus()
implementation of getStatus() of EngineResponse API class
|
Map<String,List<EngineResponse>> |
getStepResponses()
getStepResponses given the response of each step of workflow processing
|
String |
getValue()
implementation of getValue() of EngineResponse API class
|
EngineResponse |
setErrorNumber(int number) |
EngineResponse |
setMessageIdentifier(String message) |
ProcessResponse |
setOutcomeMessages(String handlerId,
OutcomeMessage message)
implementation of setMessage() of EngineResponse API class
|
ProcessResponse |
setProcessId(String processId) |
ProcessResponse |
setStatus(StatusCode status)
implementation of setStatus() of EngineResponse API class
|
ProcessResponse |
setStepResponses(Map<String,List<EngineResponse>> stepResponses)
setStepResponses, set the response at each step of workflow processing
|
public StatusCode getStatus()
getStatus in interface EngineResponsepublic ProcessResponse setStatus(StatusCode status)
setStatus in interface EngineResponsestatus - ENUM statusCodepublic Map<String,OutcomeMessage> getOutcomeMessages()
getOutcomeMessages in interface EngineResponsepublic ProcessResponse setOutcomeMessages(String handlerId, OutcomeMessage message)
setOutcomeMessages in interface EngineResponsehandlerId - handler name or idmessage - Outcome Messages of responsepublic Map<String,List<EngineResponse>> getStepResponses()
public ProcessResponse setStepResponses(Map<String,List<EngineResponse>> stepResponses)
stepResponses - the stepResponses to setpublic StatusCode getGlobalProcessStatusCode(List<EngineResponse> responses)
responses - list of step responsepublic static String getGlobalProcessOutcomeMessage(List<EngineResponse> responses)
responses - message listpublic static String getMessageIdentifierFromResponse(List<EngineResponse> responses)
responses - list of step responsepublic String getValue()
getValue in interface EngineResponsepublic String getMessageIdentifier()
getMessageIdentifier in interface EngineResponsepublic EngineResponse setMessageIdentifier(String message)
setMessageIdentifier in interface EngineResponsemessage - identifier of sedapublic int getErrorNumber()
getErrorNumber in interface EngineResponsepublic EngineResponse setErrorNumber(int number)
setErrorNumber in interface EngineResponsenumber - the number of errors during the workflowpublic String getProcessId()
public ProcessResponse setProcessId(String processId)
processId - the processId to setCopyright © 2018 Vitam. All rights reserved.