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