Package de.xima.fc.inbox.servlet
Class InboxWorkflowServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- de.xima.fc.servlet.AFormProcessingServlet
-
- de.xima.fc.inbox.servlet.InboxWorkflowServlet
-
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
@WebServlet(name="InboxWorkflowServlet", urlPatterns="/inbox/workflow/*", asyncSupported=true) public class InboxWorkflowServlet extends AFormProcessingServlet
Servlet for saving the submitted form data and triggering the workflow from the inbox.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InboxWorkflowServlet.EAction
Deprecated.Belongs to the old workflow engine.
-
Constructor Summary
Constructors Constructor Description InboxWorkflowServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
checkProcessCtx(IExtendedFormRequestContext ctx)
Validates the form request context, ie.protected IExtendedFormRequestContext
createFormRequestContext(UserContext uc, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
protected void
respondWorkflowAfterSubmit(IFormProcessContext processCtx, IExtendedFormRequestContext requestCtx)
protected boolean
startVorgang(IExtendedFormRequestContext requestCtx, IXForm xForm)
-
Methods inherited from class de.xima.fc.servlet.AFormProcessingServlet
doGet, doOptions, doPost, exec, process, processHttp
-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doPut, doTrace, getLastModified, service, service
-
-
-
-
Method Detail
-
checkProcessCtx
protected boolean checkProcessCtx(IExtendedFormRequestContext ctx)
Description copied from class:AFormProcessingServlet
Validates the form request context, ie. if the user is allowed to perform the requested action.- Specified by:
checkProcessCtx
in classAFormProcessingServlet
- Parameters:
ctx
- Current request context.- Returns:
- Whether the request is allowed.
-
createFormRequestContext
protected IExtendedFormRequestContext createFormRequestContext(UserContext uc, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws ContextBuilderException
- Specified by:
createFormRequestContext
in classAFormProcessingServlet
- Parameters:
uc
- Current user context.req
- Current HTTP request.resp
- Current HTTP response.- Returns:
- The processing context that is to be used for this request.
- Throws:
ContextBuilderException
- Allowed to be thrown when the processing context could not be built.
-
respondWorkflowAfterSubmit
protected void respondWorkflowAfterSubmit(IFormProcessContext processCtx, IExtendedFormRequestContext requestCtx) throws IOException
- Specified by:
respondWorkflowAfterSubmit
in classAFormProcessingServlet
- Throws:
IOException
-
startVorgang
protected boolean startVorgang(IExtendedFormRequestContext requestCtx, IXForm xForm)
- Overrides:
startVorgang
in classAFormProcessingServlet
-
-