class ManualHandlingTasks {

    public void updateRequestDbStatus(BuildingBlockExecution execution, String status) {
        try {
            String requestId = (String) execution.getVariable(MSO_REQUEST_ID);
            InfraActiveRequests request = requestDbclient.getInfraActiveRequestbyRequestId(requestId);

            if (status.equalsIgnoreCase(Status.TIMEOUT.name())) {
                execution.setVariable(RESPONSE_VALUE_TASK, "Timeout");
            }
            request.setRequestStatus(status);
            request.setLastModifiedBy("ManualHandling");

            requestDbclient.updateInfraActiveRequests(request);
        } catch (Exception e) {
            logger.error("Unable to save the updated request status to the DB", e);
        }
    }

}