update Before/After Action
The actionContext map passed to the action contains
the following entries:
Key
|
Value Type
|
Value Description
|
conn
|
java.sql.Connection
|
JDBC connection to the database
|
adapter
|
com.wavset.adapter.OracleERPResourceAdapter
|
Adapter instance
|
action
|
java.lang.String
|
The updateUser string
|
timing
|
java.lang.String
|
Must be before or after
|
id
|
java.lang.String
|
Account ID of the user to update.
|
password
|
java.lang.String
|
If present, this value is the decrypted value of the user’s new
password.
|
attributes
|
java.util.Map
|
Map of attributes to set for the existing user.
-
The key identifies which attribute to set
-
The value is a decrypted value to which the attribute should
be set.
A missing key means that the attribute is not being updated.
|
errors
|
java.util.List
|
Initially, this value is an empty list.
The script may add java.lang.String objects to this
list if any errors are found during processing.
|
trace
|
com.sun.idm.logging.trace.Trace
|
Object used to trace execution.
Scripts can use the methods of this class to make themselves “debuggable”
in a customer environment.
|
Error Handling
Any throw from within the script is considered a failure.
If the script encounters any errors, the script may add the appropriate
strings to the errors key. The presence of any items in
the errors List is considered an update failure.