In this example, an approval form permits a user to add a note to a task and complete the task by clicking the Approval button. In order for the approval to be processed, the form provides the active project ID (or process ID when a project ID does not exist), task ID, and the outcome ID.
<dspel:importbean bean="/atg/epub/servlet/FireWorkflowOutcomeFormHandler"/>
<dspel:form name="actionFormName" formid="actionFormName" action="actionNote.jsp"
method="post">
<dspel:input type="hidden" bean="FireWorkflowOutcomeFormHandler.processId"
value="${param.processId}"/>
<c:if test="${param.projectId != null}">
<dspel:input type="hidden"
bean="FireWorkflowOutcomeFormHandler.projectId"
value="${param.projectId}"/>
</c:if>
<dspel:input type="hidden" bean="FireWorkflowOutcomeFormHandler.taskElementId"
value="${param.taskId}"/>
<dspel:input type="hidden" value="${param.outcomeId}"
bean="FireWorkflowOutcomeFormHandler.outcomeElementId"/>
Enter your note here:<dspel:textarea rows="8" cols="40"
bean="FireWorkflowOutcomeFormHandler.actionNote"/>
<dspel:input type="submit" name="Approval"
bean="FireWorkflowOutcomeFormHandler.fireWorkflowOutcome"/>
</dspel:form>
