Sun Identity Manager Deployment Reference

script Function

Encapsulates a fragment of JavaScript. When this expression is evaluated, the JavaScript interpreter is launched to process the script. The value of the expression is the value of the last JavaScript statement. Within the script, the object env can be used to access variables in the host application.

Avoid using JavaScript in performance-critical expressions such as <Disable> expressions in forms. Short XPRESS expressions are easier to debug using the built-in tracing facilities. Use JavaScript for complex logic in workflow actions.


   var arg1 = env.get(’arg1’);
   arg1 + 100;

   var cal Now = Calendar.getInstance();
   cal Now.getTime()