How to verify process as uppercase

Hi,
I'm using ksh, I have a server process run in the background called fin_tr_APPADJ. I have a requirement now to create a script to check if all the processes spawn with process named fin_tr_* must be uppercase, fin_tr_ can be lower case, but anything suffixed with fin_tr_* must be uppercase. The script will return 0 if all uppercase, otherwise return 1.
Appreciate if anyone can helps.

Thanks in advance.

best regards

For example,

   root 2880       1   2  11:34:04 /usr/bin/bash
   root 364    2880   2  11:34:10 fin_tr_APPADJnox
   root 264       1   3  11:40:15 /usr/bin/bash
   root 4644     352   4  12:17:12 fin_tr_APPADJi
   root 2452    4644   4  13:21:45 fin_tr_APPADJ
ps -ef |awk -F \_ '/fin_tr_/ && $NF!=toupper($NF) {a++}END{print  a?"1":"0"}'  

Hi,
Thanks a tons! Is there anyway i can construct this using if-then-else? just wondering how do you manually create the process fin_tr_APPADJi, fin_tr_APPADJ and fin_tr_APPADJnox?

---------- Post updated at 12:21 PM ---------- Previous update was at 12:01 PM ----------

i tried run the command, it still returning as 1 even though i have APPADJ as uppercase.

ps -ef |awk -F \_ '/fin_tr_/ && $NF!=toupper($NF) {a++}END{print a?"1":"0"}' 

I tried below command just check the suffixed (APPADJ), but I'm not sure how to check the upper case:

ps -ef | grep fin_ | grep tr_ |awk '{print substr($9,8)}'

Any help would great appreciate.

 
$ ps -ef | perl -F_ -lane '{print $_ if($_=~/fin_tr/ && uc($F[2]) eq $F[2])}'
root 2452    4644   4  13:21:45 fin_tr_APPADJ

That script works...understand that if it returns 1 it means there are processes prefixed with "fin_tr" with lowercase letters in them.