Interface EngineResponse
- All Known Implementing Classes:
ExtractUriResponse
,ProcessResponse
public interface EngineResponse
Model of Response from worker
-
Method Summary
Modifier and TypeMethodDescriptionint
getValue()
setErrorNumber
(int number) setMessageIdentifier
(String message) setOutcomeMessages
(String handlerId, OutcomeMessage messages) setStatus
(StatusCode status)
-
Method Details
-
getStatus
StatusCode getStatus()- Returns:
- Enum StatusCode {OK,KO,FATAL}
-
getValue
String getValue()- Returns:
- StatusCode value {OK,KO,FATAL}
-
setStatus
- Parameters:
status
- ENUM statusCode- Returns:
- EngineResponse
-
getOutcomeMessages
Map<String,OutcomeMessage> getOutcomeMessages()- Returns:
- list of functional error message
-
setOutcomeMessages
- Parameters:
messages
- Outcome Messages of responsehandlerId
- handler name or id- Returns:
- EngineResponse
-
getErrorNumber
int getErrorNumber()- Returns:
- list of functional error message
-
setErrorNumber
- Parameters:
number
- the number of errors during the workflow- Returns:
- EngineResponse
-
getMessageIdentifier
String getMessageIdentifier()- Returns:
- message identifier of seda
-
setMessageIdentifier
- Parameters:
message
- identifier of seda- Returns:
- EngineResponse
-