Class: Process

Process

new Process(conn)

A class which manages process rules and approval processes
Parameters:
Name Type Description
conn Connection Connection object
Source:

Classes

ApprovalProcess
ApprovalProcessRequest
ProcessRule

Members

approval :Process~ApprovalProcess

Object which mangages approval process
Type:
Source:

rule :Process~ProcessRule

Object which mangages process rules
Type:
Source:

Type Definitions

ApprovalProcessDefinition

Type:
  • Object
Properties:
Name Type Description
id String Id of approval process definition
name String Name of approval process definition
object String SObject name which approval process is defined
sortOrder Number Processing order of approval in SObject
Source:

ApprovalProcessRequestResult

Type:
  • Object
Properties:
Name Type Description
success Boolean True if processing or approval completed successfully
errors Array.<Object> The set of errors returned if the request failed
actorIds Array.<String> IDs of the users who are currently assigned to this approval step
entityId String Object being processed
instanceId String ID of the ProcessInstance associated with the object submitted for processing
instanceStatus String Status of the current process instance (not an individual object but the entire process instance)
newWorkItemIds Array.<String> Case-insensitive IDs that point to ProcessInstanceWorkitem items (the set of pending approval requests)
Source:

ProcessRuleDefinition

Type:
  • Object
Properties:
Name Type Description
id String Id of approval process definition
name String Name of process rule definition
object String SObject name which process rule is defined
Source:

ProcessRuleTriggerResult

Type:
  • Object
Properties:
Name Type Description
success Boolean Is process rule trigger succeeded or not
errors Array.<Object> Array of errors returned if the request failed
Source: