The Oracle ERP adapter supports resource actions. To enable these actions, you must supply scripts written in Javascript or BeanShell. The adapter calls these scripts before or after performing the following provisioning actions:
Every action script receives an actionContext map, as defined by the java.util.Map class. The possible map content varies for each action.
Scripts should never close the JDBC Connection that is passed to them. The adapter automatically closes the connection at the appropriate time.
See Chapter 51, Adding Actions to Resources for more information about implementing resource actions. Example scripts are provided in $WSHOME/sample/OracleERPActions.xml.
The actionContext map passed to the action contains the following entries:
Any throw from within the script is considered a failure.
If the script encounters any errors, the script may also add appropriate strings to the errors key. The presence of any items in the errors List is considered a creation failure.
The actionContext map passed to the action contains the following entries:
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.
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 deleteUser string |
timing |
java.lang.String |
Must be before or after |
id |
java.lang.String |
Account ID of the user to delete |
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. |
Any throw from within the script is considered a failure.
If the script encounters any errors, the script may add appropriate strings to the errors key. The presence of any items in the errors List is considered a deletion failure.
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 enableUser string |
timing |
java.lang.String |
Must be before or after |
id |
java.lang.String |
User account ID to enable |
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. |
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 a failure.
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 disableUser string |
timing |
java.lang.String |
Must be before or after |
id |
java.lang.String |
User account ID to disable |
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. |
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 a failure.
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:
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.