There are two date.
1.)
Due date - :user can select a date
2.)
Termination Date- : will be 1st day of the next
month of the Due Date.
User can suggest a date (Due date) then Termination Date
will be 1st day of the next month of the Due Date. EX: Due date from is Sep 22
then Termination Date = Oct 1
1.) Create a new
function
2.) Select particular library name or
create new library to add this function.
3.) At Parameter tab- : Add input
parameter name with String data type and In/Out filed selected as In. Output
Return type name as String.
4.) At java tab- : Used following
java code for logic and pass input parameter which defined in Parameter tab.
DateFormat format = new
SimpleDateFormat("yyyyMMdd");
Calendar calendar =
Calendar.getInstance();
try{
}catch(Exception ex){}
String dateout =
format.format(calendar.getTime());
5.) At Imports and
Exception tab-: Import following packages to compile above java code.
java.text.DateFormat;
java.text.SimpleDateFormat;
java.util.Calendar;
6.) Generate Library and used as a function.
Test Library
Generation
|
After you've saved
the instance, but before you click the Generate
Library button, click to find any language errors.
|
Generate Library
|
Click to update the
library on the Process Commander system (on the current node only).
![]() |
7.) Usage of
this function
No comments:
Post a Comment