Use the delete action to delete users from the customer’s database. If the delete action is not defined, then the adapter cannot delete users from the customer’s database.
The actionContext map contains the following entries:
Key |
Value Type |
Value Description |
---|---|---|
conn |
java.sql.Connection |
JDBC connection to the customer’s database |
adapter |
com.wavset.adapter.ScriptedJdbcResourceAdapter |
Adapter instance |
action |
java.lang.String |
The deleteUser string |
id |
java.lang.String |
User account ID 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.waveset.adapter.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.