Prepare ( )

This function get parameter information coming from Action as shown below. 

 

int _hra = 0; 

string grade = ""; 

 

///<summary> 

/// Prepare - e.g., get Parameters. 

///</summary> 

protectedoverridevoid Prepare() 

        { 

ProcessInfoParameter[] para = GetParameter(); 

 

foreach (ProcessInfoParameter element in para) 

            { 

String name = element.GetParameterName(); 

if (element.GetParameter() == null) 

                { 

                    ; 

                } 

if (name.Equals("VAT_HRA")) 

                    _hra = element.GetParameterAsInt(); 

elseif (name.Equals("VAT_EmployeeGrade")) 

                { 

                    grade = Convert.ToString(element.GetParameter()); 

                } 

else 

                    log.Log(Level.SEVERE, "Unknown Parameter: " + name); 

            } 

        }