ProcessNode

Describes a step in a process definition. Compare to ProcessInstanceNode, which describes the step in a running process.

Supported Calls

describeSObjects(), query(), retrieve()

Fields

Field Details
Description
Type
string
Properties
Filter, Nillable, Sort
Description
A description of this node, no longer than 3,000 bytes.
DeveloperName
Type
string
Properties
Filter, Group, Sort
Description
The external name of the node; the name seen by users.
Name
Type
string
Properties
Filter, Group, Sort
Description
The unique node name.
ProcessDefinition
Type
reference
Properties
Filter, Group, Sort
Description
ID of the object affected by this approval instance.

Usage

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.