Properties
| Property | Type | Description |
|---|---|---|
| processControl | Config2_ProcessControl | Process control settings . |
Methods
| Method | Returns | Description |
|---|---|---|
| add() | Config2_ProcessTrigger | Add a new process trigger . |
| get() | Config2_ProcessTrigger | Get a process trigger by name . |
| remove() | void | Remove a process trigger by name . |
| toArray() | Array.<Config2_ProcessTrigger> | Get all process triggers . |
Property Details
processControl :Config2_ProcessControl
- Description:
Process control settings
Process control settings
Type:
Method Details
add(name, events, type, scriptOrProcess, args) → {Config2_ProcessTrigger}
- Description:
Add a new process trigger
Parameters:
| Name | Type | Description |
|---|---|---|
name |
String | Trigger name |
events |
String | Comma-separated list of event types to trigger on |
type |
String | Process type ('Program' or 'JSSScript') |
scriptOrProcess |
String | Script content (for JSSScript) or process path (for Program) |
args |
Array.<String> | Arguments array (for Program type) |
Returns:
Created trigger object
get(name) → {Config2_ProcessTrigger|null}
- Description:
Get a process trigger by name
Parameters:
| Name | Type | Description |
|---|---|---|
name |
String | Trigger name |
Returns:
Trigger object or null if not found
- Type
- Config2_ProcessTrigger | null
remove(name)
- Description:
Remove a process trigger by name
Parameters:
| Name | Type | Description |
|---|---|---|
name |
String | Trigger name |
toArray() → {Array.<Config2_ProcessTrigger>}
- Description:
Get all process triggers
Returns:
Array of all trigger objects
- Type
- Array.<Config2_ProcessTrigger>