Refactor
Added Error code 002-9002 related to inbound constraint
Added positive and negative tests for test inbound while constraint
Fixed bug