getUser After Action
The getUser action is useful in situations where you need to retrieve
additional custom account attributes from the database beyond those retrieved
by the standard adapter. To enable this action, specify the name of this resource
action by setting the resource parameter labeled GetUser 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 getUser string
|
id
|
java.lang.String
|
The user account ID to fetch.
|
currentAttributes
|
java.util.Map
|
Map of attributes to set for the existing user.
|
changedAttributes
|
java.util.Map
|
This is passed in as empty map.
The script can optionally populate this map in order to either:
-
Add new account attributes to Waveset’s view
of the user, or
-
Change the value of account attributes in Waveset’s
user view
The key is the name of the account attribute (as registered
in the right-hand side of the schema map). The value is the desired value
for the account attribute.
|
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, it may add appropriate strings
to the errors key. The presence of any items in the errors List is considered a fetch failure.