@WebServlet(name="InboxWorkflowServlet", urlPatterns="/inbox/workflow/*", asyncSupported=true) public class InboxWorkflowServlet extends AFormProcessingServlet
Modifier and Type | Class and Description |
---|---|
static class |
InboxWorkflowServlet.EAction |
Constructor and Description |
---|
InboxWorkflowServlet() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkProcessCtx(IExtendedFormRequestContext ctx)
Validates the form request context, ie. if the user is allowed to perform the requested action.
|
protected IExtendedFormRequestContext |
createFormRequestContext(UserContext uc,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
protected void |
respondWorkflowAfterSubmit(IFormProcessContext processCtx,
IExtendedFormRequestContext requestCtx) |
protected void |
startCorrection(IExtendedFormRequestContext requestCtx,
IXForm xform,
InboxWorkflowServlet.EAction action,
boolean runWorkflow,
String targetStateAlias) |
protected void |
startStateChange(IExtendedFormRequestContext requestCtx,
IXForm xform,
String targetStateAlias) |
protected boolean |
startVorgang(IExtendedFormRequestContext requestCtx,
IXForm xform) |
doGet, doPost, exec, process, processHttp
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
protected IExtendedFormRequestContext createFormRequestContext(UserContext uc, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws ContextBuilderException
createFormRequestContext
in class AFormProcessingServlet
uc
- Current user context.req
- Current HTTP request.resp
- Current HTTP response.ContextBuilderException
- Allowed to be thrown when the processing context could not be built.protected boolean checkProcessCtx(IExtendedFormRequestContext ctx)
AFormProcessingServlet
checkProcessCtx
in class AFormProcessingServlet
ctx
- Current request context.protected boolean startVorgang(IExtendedFormRequestContext requestCtx, IXForm xform)
startVorgang
in class AFormProcessingServlet
protected void startStateChange(IExtendedFormRequestContext requestCtx, IXForm xform, String targetStateAlias) throws IOException, ContextBuilderException
IOException
ContextBuilderException
protected void startCorrection(IExtendedFormRequestContext requestCtx, IXForm xform, InboxWorkflowServlet.EAction action, boolean runWorkflow, String targetStateAlias)
protected void respondWorkflowAfterSubmit(IFormProcessContext processCtx, IExtendedFormRequestContext requestCtx) throws IOException
respondWorkflowAfterSubmit
in class AFormProcessingServlet
IOException
Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.