Skip to Content
0
Former Member
Aug 25, 2009 at 07:20 AM

Simple question on Java

17 Views

Hi Experts,

I have written foliowing program. There are many Processing_Status_Name. For three statue, the following if statement will do the needful. Now for all other status (other than Approved, Released for approval and Travel Cancellation Request was sent for approval I have to execute other "do.. " statement.

How I can write Java program for this purpose.

Regards,

if(wdContext.nodeEt_Trips().getEt_TripsElementAt(x).getProcessing_Status_Name().equalsIgnoreCase("Approved")){
do...
}

if(wdContext.nodeEt_Trips().getEt_TripsElementAt(x).getProcessing_Status_Name().equalsIgnoreCase("Released for approval")){
do...						  
}
		
if(wdContext.nodeEt_Trips().getEt_TripsElementAt(x).getProcessing_Status_Name().equalsIgnoreCase("Travel Cancellation Request was sent for approval")){
do...						  
}