Trigger Web Services
Universal Controller supports the following RESTful-based web services for Trigger operations.
Formatting specifications for each web service, including details about parameter requirements, are provided.
Common Web Services
The following web services are common to multiple Trigger types:
- Assign an Execution User to a Trigger
- Delete a Trigger
- Enable/Disable a Trigger
- List Triggers
- List Triggers - Advanced
- Set Skip Count
- Trigger Task(s) (Trigger Now)
- Unassign an Execution User from a Trigger
Detailed information for each of these web services is provided on this page.
Trigger-Specific Web Services
The following web services are specific to each Trigger type:
- Create a Trigger
- List Trigger Qualifying Times (Cron and Time Triggers only)
- Modify a Trigger
- Modify Time of Time Trigger (Time Trigger only)
- Read a Trigger
For detail information about these Trigger-specific web services, see:
- Application Monitor Trigger Web Services
- Composite Trigger Web Services
- Cron Trigger Web Services
- Email Monitor Trigger Web Services
- Agent File Monitor Trigger Web Services
- Manual Trigger Web Services
- Task Monitor Trigger Web Services
- Temporary Trigger Web Services
- Time Trigger Web Services
- Universal Monitor Trigger Web Services
- Variable Monitor Trigger Web Services
- z/OS Monitor Trigger Web Services
Assign an Execution User to a Trigger
Description | |
|---|---|
URI | http://host_name/uc/resources/trigger/assignexecutionuser |
HTTP Method | POST |
Description | Assigns an Execution User to the specified trigger. |
URI Parameters | |
Authentication | HTTP Basic |
Example URI | |
Consumes Content-Type | application/xml, application/json |
Produces Content-Type | n/a |
Example Request | See Assign an Execution User to a Trigger: XML and JSON Request Examples. |
Request Properties | See Assign an Execution User to a Trigger: Request Properties. |
Example Response |
|
Assign an Execution User to a Trigger: URI Parameters
Name | Description | Specifications | Required | Mutually Exclusive With |
|---|---|---|---|---|
| Unique ID for this trigger. | Y |
| |
| Name used within the Controller to identify this trigger. | Maximum 40 alphanumerics. | Y |
|
Assign an Execution to a Trigger: XML and JSON Request Examples
- JSON
- XML
JSON
{
"username": "test",
"password": "pass1"
}
XML
<executionUser>
<username>test</username>
<password>pass1</password>
</executionUser>
Assign an Execution User to a Trigger: Request Properties
Property | UI Field Name | Description | Specifications | Required |
|---|---|---|---|---|
| n/a | If the user executing this web service does not have the ops_admin role; Password of the Execution User. | Y | |
| n/a | Name of the Execution User. | Wildcards are supported. | Y |
Delete a Trigger
Description | |
|---|---|
URI | http://host_name/uc/resources/trigger |
HTTP Method | DELETE |
Description | Deletes the specified Trigger. |
URI Parameters | |
Authentication | HTTP Basic |
Example URI | |
Example Response |
|
Delete a Trigger: URI Parameters
Name | Description | Specifications | Required | Mutually Exclusive With |
|---|---|---|---|---|
| Unique ID for this trigger. | Y |
| |
| Name used within the Controller to identify this trigger. | Maximum 40 alphanumerics. | Y |
|
Enable/Disable a Trigger
Description | |
|---|---|
URI | http://host_name/uc/resources/trigger/enabledisable |
HTTP Method | POST |
Description | Enables/Disables a list of triggers. |
Example URI | |
Authentication | HTTP Basic |
Consumes Content-Type | application/xml, application/json |
Produces Content-Type | application/xml, application/json |
Example Request | |
Request Properties | |
Example Response |
Enable/Disable a Trigger: XML and JSON Examples
- JSON
- XML
Request Example
JSON
[
{
"enable": true,
"name": "uc - 1st and 15th"
},
{
"enable": false,
"name": "uc - 1st Sunday of Month"
}
]
Response Example
JSON
{
"type": Enable/Disable Triggers",
"success": true,
"info": "Successfully enabled trigger "uc - 1st and 15th"., Successfully disabled trigger "uc - 1st Sunday of Month".",
"errors": ""
}
Request Example
XML
<enable-disable-trigger>
<trigger enable="true" name="uc - 1st and 15th"></trigger>
<trigger enable="false" name="uc - 1st Sunday of Month"></trigger>
</enable-disable-trigger>
Response Example
XML
<command-response>
<type>Enable Disable Triggers</type>
<success>true</success>
<info>Successfully enabled trigger uc - 1st and 15th, Successfully disabled trigger uc - 1st Sunday of Month</info>
<errors />
</command-response>
Enable/Disable a Trigger: Request Trigger Properties
Property | UI Field Name | Description | Specifications | Required |
|---|---|---|---|---|
| n/a | There are two attributes for this property:
For example: <trigger enable="false" name="uc - 1st Sunday of Month"></trigger> | Y |
List Triggers
Description | |
|---|---|
URI | http://host_name/uc/resources/trigger/list |
HTTP Method | POST |
Description | Lists triggers matching specific search criteria. |
Example URI | |
Authentication | HTTP Basic |
Consumes Content-Type | application/xml, application/json |
Produces Content-Type | application/xml, application/json |
Example Request | |
Request Properties | |
Example Response |
List Triggers: XML and JSON Examples
- JSON
- XML
Request Example
JSON
{
"name": "*time*",
"enabled": true,
"type": "Time",
"tasks": ["CMD_WF", "PING"],
"taskIds": ["ffda846987be43c69c4dd62ac452eabf", "ca960a653a704fec893eb17adc6f5f3d"],
"description": "manual1"
}
Response Example
JSON
[
{
"enabled": true,
"name": "Example time trigger 1",
"sysId": "68aca9ea398f4d17a7ca23eeaa1d4fa1",
"type": "Time",
"version": 5
},
{
"enabled": true,
"name": "Example time trigger 2",
"sysId": "54c562ceb5e44aeca99f836b65fd86fb",
"type": "Time",
"version": 11
}
]
Request Example
XML
<generic-query-filter>
<name>*time*</name>
<enabled>true</enabled>
<type>Time</type>
<tasks>
<task taskId="ffda846987be43c69c4dd62ac452eabf">CMD_WF</task>
<task taskId="ca960a653a704fec893eb17adc6f5f3d">PING</task>
</tasks>
<description>manual1</description>
</generic-query-filter>
Response Example
XML
<triggers>
<trigger>
<enabled>true</enabled>
<name>Example time trigger 1</name>
<sysID>07e69e9ac0a830016f4e065eb8e4ffe0</sysID>
<type>Time</type>
<version>1</version>
</trigger>
<trigger>
<enabled>true</enabled>
<name>Example time trigger 2</name>
<sysID>07e69051c0a8300135a540b2d5b07ade</sysID>
<type>Time</type>
<version>1</version>
</trigger>
</triggers>
List Triggers: Request Properties
Property | UI Field Name | Description | Specifications | Required |
|---|---|---|---|---|
| Member of Business Services | Business Services that this trigger belongs to. | N | |
| Description | Filter the trigger list using the description. | Wildcards are supported. | N |
| Status | Indication of whether to list enabled (true) or disabled (false) triggers. | Boolean; Valid values: true/false. | N |
| Name | Name or partial name of one or more triggers. | Wildcards are supported. | N |
| Task(s) | List Triggers that reference any one of the specified links. | Comma-separated Task names. | N |
| n/a | Type of triggers to list. | Valid values:
| N |
List Triggers - Advanced
Description | |
|---|---|
URI | |
HTTP Method | GET |
Description | Retrieves trigger details using specific query parameters. |
Example URI | |
Authentication | HTTP Basic |
Consumes Content-Type | n/a |
Produces Content-Type | application/xml, application/json |
URI Properties | |
Example Response |
List Triggers - Advanced: URI Parameters
Property | UI Field Name | Description | Specifications | Required |
|---|---|---|---|---|
| Member of Business Services | Business Services that this trigger belongs to. | N | |
| Description | Filter the trigger list using the description. | Wildcards are supported. | N |
| Status | Indication of whether to list enabled (true) or disabled (false) triggers. | Boolean; Valid values: true/false. | N |
| Name | Name or partial name of one or more triggers. | Wildcards are supported. | N |
| Task(s) | List Triggers that reference any one of the specified links. | Comma-separated Task names. | N |
| n/a | Type of triggers to list. | Valid values:
|
List Triggers - Advanced: XML and JSON Examples
- JSON
- XML
JSON
[
{
"type": "triggerCron",
"action": "Do Not Trigger",
"calendar": "System Default",
"dayLogic": "And",
"dayOfMonth": "*",
"dayOfWeek": "*",
"description": "cron test",
"disabledBy": "",
"disabledTime": "",
"enabled": false,
"enabledBy": "ops.admin",
"enabledTime": "2021-06-01 11:29:48 -0400",
"exportReleaseLevel": "7.2.0.0"
"exportTable": "ops_trigger_cron",
"forecast": false,
"hours": "1",
"minutes": "0",
"month": "*",
"name": "cron-1",
"nextScheduledTime": "",
"notes": [],
"opswiseGroups": [
"B"
],
"rdExcludeBackup": false,
"restriction": false,
"restrictionAdjective": "Every",
"restrictionComplex": false,
"restrictionMode": "Or",
"restrictionNoun": {
"value": "Day"
},
"restrictionNthAmount": 5,
"restrictionQualifier": {
"value": "Year"
},
"restrictionSimple": false,
"retainSysIds": true,
"retentionDuration": 1,
"retentionDurationPurge": false,
"retentionDurationUnit": "Days",
"simulationOption": "-- System Default --",
"situation": "Holiday",
"skipActive": false,
"skipAfterDate": null,
"skipAfterTime": null,
"skipBeforeDate": null,
"skipBeforeTime": null,
"skipCondition": "None",
"skipCount": 0,
"skipDateList": [],
"skipRestriction": "None",
"sysId": "e9b45bc055b24f1abacfcea057af711d",
"tasks": ["CMD_WF", "PING"],
"taskIds": ["ffda846987be43c69c4dd62ac452eabf", "ca960a653a704fec893eb17adc6f5f3d"],
"timeZone": null,
"variables": [],
"version": 1
},
{
"type": "triggerManual",
"calendar": "System Default",
"description": "Manual test",
"disabledTime": "",
"enabled": false,
"enabledTime": "",
"exportReleaseLevel": "7.2.0.0"
"exportTable": "ops_trigger_manual",
"name": "man-trig-1",
"nextScheduledTime": "",
"notes": [],
"opswiseGroups": [],
"rdExcludeBackup": false,
"restrictionNthAmount": 5,
"retainSysIds": true,
"retentionDuration": 1,
"retentionDurationPurge": false,
"retentionDurationUnit": "Days",
"sysId": "728fc94ce80c4b97ae63ab741e902cc5",
"tasks": ["CMD_WF", "PING"],
"taskIds": ["ffda846987be43c69c4dd62ac452eabf", "ca960a653a704fec893eb17adc6f5f3d"],
"timeZone": null,
"variables": [],
"version": 1
},
{
"type": "triggerTm",
"action": "Do Not Trigger",
"calendar": "System Default",
"description": "Task Monitor Trigger 1",
"disabledTime": "",
"enabled": false,
"enabledEnd": "00:00",
"enabledStart": "00:00",
"enabledTime": "",
"exportReleaseLevel": "7.2.0.0"
"exportTable": "ops_trigger_tm",
"name": "Taskmon-trig-1",
"nextScheduledTime": "",
"notes": [],
"opswiseGroups": [
"A"
],
"rdExcludeBackup": false,
"restrictedTimes": false,
"restriction": false,
"restrictionAdjective": "Every",
"restrictionComplex": false,
"restrictionMode": "Or",
"restrictionNoun": {
"value": "Day"
},
"restrictionNthAmount": 5,
"restrictionQualifier": {
"value": "Year"
},
"restrictionSimple": false,
"retainSysIds": true,
"retentionDuration": 1,
"retentionDurationPurge": false,
"retentionDurationUnit": "Days",
"situation": "Holiday",
"skipActive": false,
"skipAfterDate": null,
"skipAfterTime": null,
"skipBeforeDate": null,
"skipBeforeTime": null,
"skipCondition": "None",
"skipCount": 0,
"skipDateList": [],
"skipRestriction": "None",
"sysId": "808272bdf2aa49a9bb8edcb700c40cfd",
"taskMonitor": "Task-mon-1",
"tasks": ["CMD_WF", "PING"],
"taskIds": ["ffda846987be43c69c4dd62ac452eabf", "ca960a653a704fec893eb17adc6f5f3d"],
"timeZone": null,
"variables": [],
"version": 1
},
{
"type": "triggerTime",
"action": "Do Not Trigger",
"adjustInterval": false,
"adjustmentAmount": 1,
"adjustmentType": "Day",
"calendar": "System Default",
"dateAdjective": "Every",
"dateAdjustment": "None",
"dateNoun": {
"value": "Day"
},
"dateQualifier": {
"value": "Year"
},
"dayInterval": 2,
"dayStyle": "Simple",
"description": "Time trigger test",
"disabledTime": "",
"enabled": false,
"enabledEnd": "00:00",
"enabledStart": "00:00",
"enabledTime": "",
"exportReleaseLevel": "7.2.0.0"
"exportTable": "ops_trigger_time",
"forecast": false,
"fri": false,
"intervalStartingDate": "2021-06-01",
"mon": false,
"name": "time-trig-1",
"nextScheduledTime": "",
"notes": [],
"nthAmount": 5,
"opswiseGroups": [
"A"
],
"rdExcludeBackup": false,
"restrictedTimes": false,
"restriction": false,
"restrictionAdjective": "Every",
"restrictionComplex": false,
"restrictionMode": "Or",
"restrictionNoun": {
"value": "Day"
},
"restrictionNthAmount": 5,
"restrictionQualifier": {
"value": "Year"
},
"restrictionSimple": false,
"retainSysIds": true,
"retentionDuration": 1,
"retentionDurationPurge": false,
"retentionDurationUnit": "Days",
"sat": false,
"simpleDateType": "Daily",
"simulationOption": "-- System Default --",
"situation": "Holiday",
"skipActive": false,
"skipAfterDate": null,
"skipAfterTime": null,
"skipBeforeDate": null,
"skipBeforeTime": null,
"skipCondition": "None",
"skipCount": 0,
"skipDateList": [],
"skipRestriction": "None",
"startTimeEnable": false,
"startingAt": "*:00",
"sun": false,
"sysId": "16bde4cef2df4cc3b26dd04a6bcfce91",
"tasks": ["CMD_WF", "PING"],
"taskIds": ["ffda846987be43c69c4dd62ac452eabf", "ca960a653a704fec893eb17adc6f5f3d"],
"thu": false,
"time": "00:00",
"timeInterval": null,
"timeIntervalUnits": "Hours",
"timeStyle": "Absolute",
"timeZone": null,
"tue": false,
"variables": [],
"version": 1,
"wed": false
}
]
XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<triggers>
<triggerCron exportReleaseLevel="7.2.0.0" exportTable="ops_trigger_cron" retainSysIds="true" version="1">
<variables/>
<action>Do Not Trigger</action>
<notes/>
<calendar>System Default</calendar>
<dayLogic>And</dayLogic>
<dayOfMonth>*</dayOfMonth>
<dayOfWeek>*</dayOfWeek>
<description>cron test</description>
<disabledBy></disabledBy>
<disabledTime></disabledTime>
<enabled>false</enabled>
<enabledBy>ops.admin</enabledBy>
<enabledTime>2021-06-01 11:29:48 -0400</enabledTime>
<forecast>false</forecast>
<hours>1</hours>
<minutes>0</minutes>
<month>*</month>
<name>cron-1</name>
<nextScheduledTime></nextScheduledTime>
<opswiseGroups>
<opswiseGroup>A</opswiseGroup>
<opswiseGroup>B</opswiseGroup>
</opswiseGroups>
<rdExcludeBackup>false</rdExcludeBackup>
<restriction>false</restriction>
<restrictionAdjective>Every</restrictionAdjective>
<restrictionComplex>false</restrictionComplex>
<restrictionMode>Or</restrictionMode>
<restrictionNoun>Day</restrictionNoun>
<restrictionNthAmount>5</restrictionNthAmount>
<restrictionQualifier>Year</restrictionQualifier>
<restrictionSimple>false</restrictionSimple>
<retentionDuration>1</retentionDuration>
<retentionDurationPurge>false</retentionDurationPurge>
<retentionDurationUnit>Days</retentionDurationUnit>
<simulationOption>-- System Default --</simulationOption>
<situation>Holiday</situation>
<skipActive>false</skipActive>
<skipAfterDate />
<skipAfterTime />
<skipBeforeDate />
<skipBeforeTime />
<skipCondition>None</skipCondition>
<skipCount>0</skipCount>
<skipDateList/>
<skipRestriction>None</skipRestriction>
<sysId>e9b45bc055b24f1abacfcea057af711d</sysId>
<tasks>
<task taskId="ffda846987be43c69c4dd62ac452eabf">CMD_WF</task>
<task taskId="ca960a653a704fec893eb17adc6f5f3d">PING</task>
</tasks>
<timeZone />
</triggerCron>
<triggerManual exportReleaseLevel="7.2.0.0" exportTable="ops_trigger_manual" retainSysIds="true" version="1">
<variables/>
<notes/>
<calendar>System Default</calendar>
<description>Manual test</description>
<disabledTime></disabledTime>
<enabled>false</enabled>
<enabledTime></enabledTime>
<name>man-trig-1</name>
<nextScheduledTime></nextScheduledTime>
<opswiseGroups/>
<rdExcludeBackup>false</rdExcludeBackup>
<restrictionNthAmount>5</restrictionNthAmount>
<retentionDuration>1</retentionDuration>
<retentionDurationPurge>false</retentionDurationPurge>
<retentionDurationUnit>Days</retentionDurationUnit>
<sysId>728fc94ce80c4b97ae63ab741e902cc5</sysId>
<tasks>
<task taskId="ffda846987be43c69c4dd62ac452eabf">CMD_WF</task>
<task taskId="ca960a653a704fec893eb17adc6f5f3d">PING</task>
</tasks>
<timeZone />
</triggerManual>
<triggerTm exportReleaseLevel="7.2.0.0" exportTable="ops_trigger_tm" retainSysIds="true" version="1">
<variables/>
<action>Do Not Trigger</action>
<notes/>
<calendar>System Default</calendar>
<description>Task Monitor Trigger 1</description>
<disabledTime></disabledTime>
<enabled>false</enabled>
<enabledTime></enabledTime>
<name>Taskmon-trig-1</name>
<nextScheduledTime></nextScheduledTime>
<opswiseGroups>
<opswiseGroup>A</opswiseGroup>
</opswiseGroups>
<rdExcludeBackup>false</rdExcludeBackup>
<restriction>false</restriction>
<restrictionAdjective>Every</restrictionAdjective>
<restrictionComplex>false</restrictionComplex>
<restrictionMode>Or</restrictionMode>
<restrictionNoun>Day</restrictionNoun>
<restrictionNthAmount>5</restrictionNthAmount>
<restrictionQualifier>Year</restrictionQualifier>
<restrictionSimple>false</restrictionSimple>
<retentionDuration>1</retentionDuration>
<retentionDurationPurge>false</retentionDurationPurge>
<retentionDurationUnit>Days</retentionDurationUnit>
<situation>Holiday</situation>
<skipActive>false</skipActive>
<skipAfterDate />
<skipAfterTime />
<skipBeforeDate />
<skipBeforeTime />
<skipCondition>None</skipCondition>
<skipCount>0</skipCount>
<skipDateList/>
<skipRestriction>None</skipRestriction>
<sysId>808272bdf2aa49a9bb8edcb700c40cfd</sysId>
<tasks>
<task taskId="ffda846987be43c69c4dd62ac452eabf">CMD_WF</task>
<task taskId="ca960a653a704fec893eb17adc6f5f3d">PING</task>
</tasks>
<timeZone />
<enabledEnd>00:00</enabledEnd>
<enabledStart>00:00</enabledStart>
<restrictedTimes>false</restrictedTimes>
<taskMonitor>Task-mon-1</taskMonitor>
</triggerTm>
<triggerTime exportReleaseLevel="7.2.0.0" exportTable="ops_trigger_time" retainSysIds="true" version="1">
<variables/>
<action>Do Not Trigger</action>
<notes/>
<adjustInterval>false</adjustInterval>
<adjustmentAmount>1</adjustmentAmount>
<adjustmentType>Day</adjustmentType>
<calendar>System Default</calendar>
<dateAdjective>Every</dateAdjective>
<dateAdjustment>None</dateAdjustment>
<dateNoun>Day</dateNoun>
<dateQualifier>Year</dateQualifier>
<dayInterval>2</dayInterval>
<dayStyle>Simple</dayStyle>
<description>Time trigger test</description>
<disabledTime></disabledTime>
<enabled>false</enabled>
<enabledEnd>00:00</enabledEnd>
<enabledStart>00:00</enabledStart>
<enabledTime></enabledTime>
<forecast>false</forecast>
<fri>false</fri>
<intervalStartingDate>2021-06-01</intervalStartingDate>
<mon>false</mon>
<name>time-trig-1</name>
<nextScheduledTime></nextScheduledTime>
<nthAmount>5</nthAmount>
<opswiseGroups>
<opswiseGroup>A</opswiseGroup>
</opswiseGroups>
<rdExcludeBackup>false</rdExcludeBackup>
<restrictedTimes>false</restrictedTimes>
<restriction>false</restriction>
<restrictionAdjective>Every</restrictionAdjective>
<restrictionComplex>false</restrictionComplex>
<restrictionMode>Or</restrictionMode>
<restrictionNoun>Day</restrictionNoun>
<restrictionNthAmount>5</restrictionNthAmount>
<restrictionQualifier>Year</restrictionQualifier>
<restrictionSimple>false</restrictionSimple>
<retentionDuration>1</retentionDuration>
<retentionDurationPurge>false</retentionDurationPurge>
<retentionDurationUnit>Days</retentionDurationUnit>
<sat>false</sat>
<simpleDateType>Daily</simpleDateType>
<simulationOption>-- System Default --</simulationOption>
<situation>Holiday</situation>
<skipActive>false</skipActive>
<skipAfterDate />
<skipAfterTime />
<skipBeforeDate />
<skipBeforeTime />
<skipCondition>None</skipCondition>
<skipCount>0</skipCount>
<skipDateList/>
<skipRestriction>None</skipRestriction>
<startTimeEnable>false</startTimeEnable>
<startingAt>*:00</startingAt>
<sun>false</sun>
<sysId>16bde4cef2df4cc3b26dd04a6bcfce91</sysId>
<tasks>
<task taskId="ffda846987be43c69c4dd62ac452eabf">CMD_WF</task>
<task taskId="ca960a653a704fec893eb17adc6f5f3d">PING</task>
</tasks>
<thu>false</thu>
<time>00:00</time>
<timeInterval />
<timeIntervalUnits>Hours</timeIntervalUnits>
<timeStyle>Absolute</timeStyle>
<timeZone />
<tue>false</tue>
<wed>false</wed>
</triggerTime>
</triggers>
Set Skip Count
Description | |
|---|---|
URI | http://host_name:port/uc/resources/trigger/setskipcount http://host_name:port/uc/resources/trigger/setSkipCount |
HTTP Method | POST |
Description | Sets the skip count for a specific trigger. info Temporary Triggers and Manual Triggers do not support Skip Count. Therefore, the Set Skip Count API is not applicable for Temporary Triggers and Manual Triggers. |
Example URI | http://localhost:8080/uc/resources/trigger/setskipcount?triggername=time-1&skipCount=10 |
Authentication | HTTP Basic |
Produces Content-Type | Application/XML, Application/JSON |
Consumes Content-Type | Application/XML, Application/JSON |
Example Responses |
|
Set Skip Count: URI Parameters
Name | Description | Specifications | Required | Mutually Exclusive With |
|---|---|---|---|---|
| Name used within the Controller to identify this trigger. | Maximum 40 alphanumerics. | Y |
|
| Unique ID for this trigger. | Y |
| |
| Skip count to set. | Default is 0. | N |
Set Skip Count: XML and JSON Examples
- JSON
- XML
JSON
{
"type": "set_skip_count",
"success": true,
"info": "Successfully set skip count \"10\" to trigger \"time-1\".",
"errors": ""
}
XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<command-response>
<type>set_skip_count</type>
<success>true</success>
<info>Successfully set skip count "10" to trigger "time-1".</info>
<errors></errors>
</command-response>
Trigger Task(s) (Trigger Now)
Description | |
|---|---|
URI | http://host_name/uc/resources/trigger/triggernow |
HTTP Method | POST |
Description | Launches trigger-associated tasks. |
Example URI | http://localhost:8080/uc/resources/trigger/triggernow?includeTaskInstanceIds=true |
Authentication | HTTP Basic |
Consumes Content-Type | application/xml, application/json |
Produces Content-Type | application/xml, application/json |
Example Request | See Trigger Now: XML and JSON Examples. |
Example Request Properties | See Trigger Now: Request Properties. |
Example Response | See Trigger Now: XML and JSON Examples. |
Trigger Task(s) (Trigger Now): XML and JSON Examples
- JSON
- XML
Request Example
JSON
{
"name": "man-trig1",
"hold": "yes",
"holdReason": "Waitng for input",
"launchReason": "test1",
"timeZone": "America/Chicago",
"virtualResourcePriority": 10,
"virtualResources": [
{
"name": "VR-1",
"limit": 2
}
],
"variables": [
{
"name": "testVariable",
"value": "Hello"
}
],
"overrideTriggerDateTime": "true",
"overrideDate": "2022-09-20",
"overrideTime": "11:15",
"overrideTimeZone": "America/Chicago"
}
Response Example
JSON
{
"type": "trigger_now",
"success": true,
"info": "Successfully triggered \"MT4 - Multiple Tasks\" with id 60fe6cfa8089463d987bf84fc6a98631.",
"errors": "",
"sysId": "60fe6cfa8089463d987bf84fc6a98631",
"taskInstanceIds": [
"1748439639994114960X5QU9R2MEOQQJ",
"1748439639994118960RNR1UKGH3R07S",
"1748439639994121960O5XLT5H47VP0T"
]
}
Request Example
XML
<trigger-now>
<name>man-trig1</name>
<hold>yes</hold>
<holdReason>Waiting for input</holdReason>
<launchReason>testing</launchReason>
<timeZone>America/Chicago</timeZone>
<virtualResourcePriority>10</virtualResourcePriority>
<virtual-resources>
<virtual-resource>
<name>VR-1</name>
<limit>2</limit>
</virtual-resource>
</virtual-resources>
<variables>
<variable>
<name>testVariable</name>
<value>Hello</value>
</variable>
</variables>
<overrideTriggerDateTime>true</overrideTriggerDateTime>
<overrideDate>2022-09-20</overrideDate>
<overrideTime>11:15</overrideTime>
<overrideTimeZone>America/Chicago</overrideTimeZone>
</trigger-now>
Response Example
XML
<command-response>
<type>trigger_now</type>
<success>true</success>
<info>Successfully triggered "MT5 - Single Task" with id 053e731413d14cc8966b1672424285f4.</info>
<errors></errors>
<sysId>053e731413d14cc8966b1672424285f4</sysId>
<taskInstanceIds>
<taskInstanceId>17484396399941439602L6HF5OHP3CP3</taskInstanceId>
</taskInstanceIds>
</command-response>
Trigger Task(s) (Trigger Now): Request Properties
Property | UI Field Name | Description | Specifications | Required |
|---|---|---|---|---|
| Hold on Start | Indication of whether or not to launch the task in Held status. The task runs when the user releases it. | Boolean; Valid values: Yes, Y, true. | N |
| Hold Reason | Information about why the task instances will be put on hold when the tasks start. | N | |
| n/a | Specifies whether or not to include the task instance id(s) for task(s) launched by the trigger in the response. Task instance id(s) are specified in the Example response: | Boolean; URI parameter | N (defaults to false) |
| Launch Reason | Reason for the task launch | N (Y if | |
| Name | Name of the trigger to trigger the task. | Y | |
| Date | Date of the override execution. | YYY-MM-DD | N |
| Time | Time of the override execution. | HH:MM | N |
| Time Zone | Time zone of the override execution. | N | |
| Override Trigger Date/Time | Specification for whether to enable or disable override functionality. | Boolean; Valid values: true/false. Default is false. | N |
| Simulate | Specifies if the workflow should execute under simulation mode. You can only enable simulation mode with the Trigger Now command, you cannot disable it if it is already enabled on the Trigger Record. | Boolean; Valid values: true/false. Default is false. | N |
| Time Zone | Time zone in which task is triggered. | N | |
| n/a | See Trigger Task(s) (Trigger Now): Request Variable Properties. | N | |
| Vertex Selection | Specifies Root Vertices and/or Specific Vertices to be included in the triggered workflow. A vertex can be specified by If you specify a To indicate a vertex selection is a Root Vertex, set the vertex root attribute to true. If vertex root attribute is unspecified or false, it indicates a vertex selection is a Specific Vertex. Duplicate vertex specifications are ignored and do not prevent the operation from completing. | XMLXML JSONJSON | N |
| Virtual Resource Priority | Priority for acquiring a resource when two or more tasks are waiting for the resource. This priority applies to all resources required by the task. | Integer; Valid values: 1-20 (1 is high priority, 20 is low priority). Default is 10. | N |
| n/a | See Triger Task(s) (Trigger Now): Request Virtual Resource Properties. | The virtual resource dependencies specified in
| N |
Trigger Task(s) (Trigger Now): Request Variable Properties
Property | UI Field Name | Description | Specifications | Required |
|---|---|---|---|---|
| Name | Name used within the Controller to identify this variable. | Maximum 40 alphanumerics. | Y |
| Value | Value of the variable. | Y |
Trigger Task(s) (Trigger Now): Request Virtual Resource Properties
Property | UI Field Name | Description | Specifications | Required |
|---|---|---|---|---|
| Resource Limit | Maximum number of units available for this resource. | Integer; Valid values: 1-20. | N |
| Resource Name | Name used within the Controller to identify this virtual resource. | Maximum 40 alphanumerics. | Y |
Unassign an Execution User from a Trigger
Description | |
|---|---|
URI | http://host_name/uc/resources/trigger/unassignexecutionuser |
HTTP Method | POST |
Description | Unassigns an Execution User from the specified trigger. |
URI Parameters | See Unassign an Execution User to a Trigger: URI Parameters. |
Authentication | HTTP Basic |
Example URI | |
Example Response |
|
Unassign an Execution User from a Trigger: URI Parameters
Name | Description | Specifications | Required | Mutually Exclusive With |
|---|---|---|---|---|
| Unique ID for this trigger. | Y |
| |
| Name used within the Controller to identify this trigger. | Maximum 40 alphanumerics. | Y |
|