Field Validation in IBM BPM Coach

Those who have worked on IBM BPM v8.0 know the difficulties with field validation in IBM BPM Coaches with the introduction of Coach Views. A traditional java script methods which we use for field validation in the lower version coaches (heritage coach as it is called now) won't work directly anymore. we need to implement hell lot stuff to perform validation on a field and display error message at the field if the data entered is not as per rules. Well, it just got easier  in IBM BPM V8.0.1
In this post let us explore how to perform validation for given field in a coach. Below shown is a simple setup for performing validation on coach fields.

Figure 1 : Coach Validation Setup
In IBM BPM v8.0.1, a new functionality called Fire Validation is introduced which is linked to a transaction (line joining the coach and next component in the flow) of a Boundary Event. In the above figure, you can see this in the properties of the transaction.