4.5. Task Outcomes
Commonly, a user is expected to make a decision on the task, e.g. to approve or to reject the contract. The next route through the process depends on this decision. The Task outcomes property of the User task node is used to define the list of outcomes. The name and form that should be displayed when an outcome is selected can be defined for each outcome separately. Parameters that should be passed to the form can be defined as well (see Process Forms).
<userTask id="managerApproval" name="Manager approval"> <extensionElements> <cuba:outcomes> <cuba:outcome name="approve"> <cuba:form name="standardProcessForm"> <cuba:param name="commentRequired">true</cuba:param> <cuba:param name="attachmentsVisible">true</cuba:param> </cuba:form> </cuba:outcome> <cuba:outcome name="reject"> <cuba:form name="someOtherProcessForm"> </cuba:form> </cuba:outcome> </cuba:outcomes> </extensionElements> </process>