Why and when to perform this task
User input fields often require additional information to enable users to understand the purpose of these fields. You can use user-defined JavaServer Pages (JSP) files to provide additional information about message parts in the standard Web client. A typical user-defined JSP file for displaying user input data can provide a detailed description for each type of input field including entry fields, check boxes, and radio buttons. General information about the process or the activity to which the input data is related can also be displayed.
Steps for this task
BusinessProcessService process = MessageUtilities.getBusinessProcessService(request);You can use the BusinessProcessService interface to develop applications that work with both the remote and the local object of the bean.
<% String aiid = request.getParameter("WF_AIID"); BusinessProcessService process = MessageUtilities.getBusinessProcessService(request); ActivityInstanceData activity = process.getActivityInstance(aiid); %> <p> A user has placed a stock order with a total estimated purchase price of more than $100000. </p> <%}if(activity.getExecutionState() == ActivityInstanceData.STATE_READY){%> <p> This order must be approved. </p> <%}if(activity.getExecutionState() == ActivityInstanceData.STATE_CLAIMED){%> <p> This order must be approved. What do you want to do? <label> <input type="radio" name="Approved" value="true"> Approve the order. </label> <label> <input type="radio" name="Approved" value="false" checked> Reject the order. </label> </p> <%}if(activity.getExecutionState() == ActivityInstanceData.STATE_FINISHED){> if (outMsg.getBooleanPart("approved")){%> <p> This order has been approved. </p> <% } else {%> <p> This order has not been approved. </p> <% } } %>
What to do next
Create a message-mapping JSP file for each user-defined JSP file that processes user input.