Hi Raja,
Your logic is good, please check if you getting exception at:
String incomingAcctNumValue = incomingRequest.getArguments().get("keyValue_value");
try using :
String incomingAcctNumValue = incomingRequest.getArguments().get("keyValue_value").toString();
Or you can debug exception by setting properties at different steps in your code:
try below:
testExec.setStateValue("acctNum","IncomingRequest");
String incomingAcctNumValue = incomingRequest.getArguments().get("keyValue_value");
testExec.setStateValue("acctNum","Value Read");
testExec.setStateValue("acctNum",incomingAcctNumValue);
Execute the code and check the {{acctNum}} value. Try similarly at different steps in code and hence you can locate exact issue.
Note: Match script do not handle any exception , it just ignore the Macth Script code if any exception in code. You can see the Error/Warning message in inspection view to check if this is ignored.
Thanks,
Dinesh Kumar