cancel
Showing results for 
Search instead for 
Did you mean: 

Read system properties in script

Former Member
0 Kudos

Hi,

Is there a way to read system properties in my script?

eg. I want to read the Messaging server properties in my script for the purpose of sending emails.

Thanks,

Priyanka

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Priyanka,

System properties can be read same way as they are done in plain java, that is using System.getProperty

Example to get the temporary directory I have used this in one of my scripts:

String dir = System.getProperty("java.io.tmpdir");

Thanks,

Gayathri

Former Member
0 Kudos

Thanks for responding Gayathri.

I tried it in my Contract Post phase script but it returns null.

Any other suggestions?

Priyanka

Former Member
0 Kudos

We read the values from the backend table via SQL query.

Answers (0)