It will run a query against the Part Master, check for the True state of the Non-Stock Part flag, and if so, raise an exception.
This is a relatively simple example but gives you a feel for the tremendous customization power available to Epicor® thanks to the SOA (Service Oriented Architecture) of the solution.
This specific Video only applies to Epicor® Vantage, Vista, and 9.