new ProcessRule(conn)
A class which manages process (workflow) rules
Parameters:
Name | Type | Description |
---|---|---|
conn |
Connection | Connection object |
- Source:
Methods
list(callbackopt) → {Promise.<Map.<String, Array.<Process~ProcessRuleDefinition>>>}
Get all process rule definitions registered to sobjects
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
callback |
Callback.<Map.<String, Array.<Process~ProcessRuleDefinition>>> |
<optional> |
Callback function |
- Source:
Returns:
- Type
- Promise.<Map.<String, Array.<Process~ProcessRuleDefinition>>>
trigger(contextIds, callbackopt) → {Promise.<Process~ProcessRuleTriggerResult>}
Trigger process rule for given entities
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
contextIds |
String | Array.<String> | Entity ID(s) to trigger workflow process | |
callback |
Callback.<Process~ProcessRuleTriggerResult> |
<optional> |
Callback function |
- Source: