describeSObjects(), query(), retrieve()
Field | Details |
---|---|
Description |
|
DeveloperName |
|
Name |
|
ProcessDefinition |
|
Use this object to get the description of a process definition.
The following SOQL query returns details for all the ProcessInstanceStep records related to individual ProcessInstance records. The nested query references Steps, which is the child relationshipName for ProcessInstanceStep in the ProcessInstance object.
SELECT Id, (SELECT Id, StepStatus, Comments FROM Steps) FROM ProcessInstance
The following SOQL query returns details for all the ProcessInstanceWorkitem records related to individual ProcessInstance records. The nested query references Workitems, which is the child relationshipName for ProcessInstanceWorkitem in the ProcessInstance object.
SELECT Id, (SELECT Id, ActorId, ProcessInstanceId FROM Workitems) FROM ProcessInstance
ProcessInstanceHistory can help provide a unified read-only view of the ProcessInstanceStep and ProcessInstanceWorkitem objects.