Hi community!!!I'm currently reading Alfresco Developer Guide. In chapter 7 (advanced workflow), page 328, a webscript is given with a method:
import org.alfresco.web.scripts.WebScriptStatus;
…
protected Map<String, Object> executeImpl(WebScriptRequest req, WebScriptStatus status) {
String id = req.getParameter("id");
String action = req.getParameter("action");
if (id == null || action == null) {
logger.debug("Email, ID, action, or secret not set");
status.setCode(400);
status.setMessage("Required data has not been provided");
status.setRedirect(true);
}
…
But the type WebScriptStatus seems to be deprecated (using Alfresco Stable 3d), so I've got a warning for every call to the object status.It doesn't really matter, but is there another type or another way to do the method with "up-to-date" type? I don't really want the script to be broken when an update of alfresco is available…It's not critical, but I think it deserves a little attention ^^Have a good day!Benoit