JSP Form Interface
The JSPForm.jsp
form makes use of the interfaces defined in the JSPFormLib.java
library in order to do a start case, lock item, release item, keep item, and undo item. These interfaces construct and make the request to the Action Processor. The JSPFormLib public interfaces available are as follows:
JSPFormLib Constructor
The constructor initiates the JSPFormLib with the request and field information.
public JSPFormLib (HttpServletRequest aRequest,
String [] aFieldNames,
String [] aFieldTypes)
getRequestType
This method returns the type of the request.
public int getRequestType()
The getRequestType method returns one of the following static int values:
• | public static final int REQUEST_TYPE_UNKNOWN = 0x0; |
• | public static final int REQUEST_TYPE_RENDER_WORK_ITEM_FORM = 0x1; |
• | public static final int REQUEST_TYPE_RENDER_START_CASE_FORM = 0x2; |
• | public static final int REQUEST_TYPE_START_CASE = 0x3; |
• | public static final int REQUEST_TYPE_UNDO = 0x4; |
• | public static final int REQUEST_TYPE_KEEP = 0x5; |
• | public static final int REQUEST_TYPE_RELEASE = 0x6; |
getInitXML
This method returns the details of the XML generated by an Undo, Keep or Release button click on the form.
public String getInitXML()
startCase
This method creates and submits an Action Processor StartCase request.
public void startCase()
undoItem
This method creates and submits an Action Processor UndoItems request.
public void undoItem()
lockItem
This method creates and submits an Action Processor LockItems request.
public String [] lockItem()
keepItem
This method creates and submits an Action Processor KeepItems request.
public void keepItem()
releaseItem
This method creates and submits an Action Processor ReleaseItems request.
public void releaseItem()