System Actions
  • 03 Jun 2022
  • 2 Minutes to read
  • Dark
    Light

System Actions

  • Dark
    Light

Article summary

System Actions

delay

Delay a specified number of seconds.

Property

Value

Description

seconds*

expression, variable

the number of seconds

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

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

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

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

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

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

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

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

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

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

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

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)
}

Was this article helpful?

What's Next
ESC

Eddy AI, facilitating knowledge discovery through conversational intelligence