--- title: "System Actions" slug: "system-actions" description: "This is a list of actions that can be taken in RapidIdentity Connect to interact directly with the system." tags: ["RapidIdentity ", "Connect", "Actions", "System"] updated: 2022-06-03T13:54:51Z published: 2022-06-03T13:54:51Z canonical: "help.rapididentity.com/system-actions" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.rapididentity.com/llms.txt > Use this file to discover all available pages before exploring further. # System Actions ## System Actions ### delay Delay a specified number of seconds. | Property | Value | Description | | --- | --- | --- | | seconds* | expression, variable | the number of seconds | ```actionscript success = deleteLDAPRecord(ldap, "cn=jdoe,ou=people," + Global.edirUserBaseDN) while(!success && ldap.lastResultMessage.contains("-637")) { # loop and sleep because we just moved the object and it can't be deleted until the move has replicated everywhere sleep = delay(2) if (getShouldTerminate() == true) return null success = deleteLDAPRecord(ldap, "cn=jdoe,ou=people," + Global.edirUserBaseDN) } ``` ### getCurrentActionSetName Gets the name of the current Action Set. | Property | Value | Description | | --- | --- | --- | | returnVariable | expression, variable | name of the variable to be assigned to the return value | ```actionscript currentActionSetName = getCurrentActionSetName() log("Starting: " + currentActionSetName) # do some things log("Ending: " + currentActionSetName) ``` ### getIdautoIDForGroup Creates/Retrieves the IdautoID value for a particular Group in LDAP. | Property | Value | Description | | --- | --- | --- | | groupDN* | text, expression, variable | the DN of the Group in question | | returnVariable | expression, variable | name of the variable to be assigned to the return value | ```actionscript id = getIdautoIDForGroup("cn=mygroup,ou=groups,o=data") ``` ### getIdautoIDForUser Creates/Retrieves the IdautoID value for a particular User in LDAP. | Property | Value | Description | | --- | --- | --- | | userDN* | text, expression, variable | the DN of the User in question | | returnVariable | expression, variable | name of the variable to be assigned to the return value | ```actionscript id = getIdautoIDForUser("cn=jdoe,ou=people,o=data") ``` ### getProcessID Gets the id of the current process. | Property | Value | Description | | --- | --- | --- | | returnVariable | expression, variable | name of the variable to be assigned to the return value | ```actionscript processID = getProcessID() ``` ### getProcessJobName Gets the name of the job associated with the current process. | Property | Value | Description | | --- | --- | --- | | returnVariable | expression, variable | name of the variable to be assigned to the return value | ```actionscript jobName = getProcessJobName() ``` ### getProcessLogFile Gets the name of the log file associated with the current process. | Property | Value | Description | | --- | --- | --- | | returnVariable | expression, variable | name of the variable to be assigned to the return value | ```actionscript logFile = getProcessLogFile() ``` ### getProcessOperatorName Gets the name of the operator that started the current process. | Property | Value | Description | | --- | --- | --- | | returnVariable | expression, variable | name of the variable to be assigned to the return value | ```actionscript operator = getProcessOperatorName() ``` ### getProcessProject Gets the name of the project associated with the current process. | Property | Value | Description | | --- | --- | --- | | returnVariable | expression, variable | name of the variable to be assigned to the return value | ```actionscript project = getProcessProject() ``` ### getProcessStartTime Gets the process start time as a Date object. | Property | Value | Description | | --- | --- | --- | | returnVariable | expression, variable | name of the variable to be assigned to the return value | ```actionscript startTime = getProcessStartTime() varNow = now() log("Process has been running for " + (varNow.getTime() - startTimegetTime())+ "ms") ``` ### getProcessTopLevelActionSetName Gets the name of the top level Action Set associated with the current process. | Property | Value | Description | | --- | --- | --- | | returnVariable | expression, variable | name of the variable to be assigned to the return value | ```actionscript topLevel = getProcessTopLevelActionSetName() ``` ### getShouldTerminate Returns true if the Action Set has been manually aborted or if the node running the Action Set has been flagged to shut down. This action can help an Action Set end cleanly when run manually or as a scheduled job. When an Action Set is terminated without this action included, RapidIdentity may not be able to shut down cleanly. | Property | Value | Description | | --- | --- | --- | | returnVariable | expression, variable | name of the variable to be assigned to the return value | ```actionscript iteration = 0 while (iteration <= 40) { if (true === getShouldTerminate()) { log("Detected early termination. Perform cleanup here.", "INFO") break () } else { } iteration = iteration + 1 log("Iteration " + iteration, "INFO") log("Calling a web service which delays for 5 seconds", "INFO") httpGET("https://httpbin.org/delay/5") if (true === getShouldTerminate()) { log("Detected early termination. Perform cleanup here.", "INFO") break () } else { } log("Delaying for 5 seconds", "INFO") delay(5) } ```