Hi @acrumley
SailPoint automatically injects certain objects into the runtime context of workflows, rules, and script steps. These are not declared by anyone, but they’re made available behind the scenes based on the execution environment (i.e., rule type, workflow step, etc.).
Here are some of the default variables automatically injected by IdentityIQ when a workflow script or step is executed:
context (SailPointContext)
The core object that gives you access to IdentityIQ’s API — you can use this to perform queries, retrieve identities, objects, etc.
log (org.apache.commons.logging.Log)
Used for writing to the iiq.log file — very useful for debugging.
wfcontext (WorkflowContext)
Provides access to variables, workflow state, and context of the currently running workflow.
wfcase (WorkflowCase)
Represents the current instance of the workflow execution — useful for case tracking and metadata.
workflow (Workflow)
The actual workflow definition object. You can inspect properties like steps and transitions.
step (Workflow.Step)
The current step that is being executed — useful if your logic depends on step-specific behavior.
approval (Approval, only available in approval steps)
Contains approval-related data such as who the approver is, what they’re approving, etc.
item (WorkItem, only available during manual approvals)
Refers to the work item currently assigned to a user for approval.