The <onproject> element defines notification actions that are performed by the system after the system executes the project steps. The element takes a required result attribute which specifies whether the actions are performed for a passing or failing job. Typically, an adaptor XML file contains two <onproject> elements, one for the pass case and one for the failure case. The following example shows a pair of <onproject> elements that use notify elements to send different messages depending on whether the project passes or fails:
<onproject result="fail"> <notify group="MyChangers" subject="Run $BF_TAG ($CurDate) Failed." message="$Changing$Changes"/> </onproject>
<onproject result="pass"> <notify group="MyChangers" subject="Run $BF_TAG ($CurDate) Passed." message="$Changing$Changes"/> </onproject>