Composite Trigger Web Services
Overview
Universal Controller supports the following RESTful-based web services for Composite Trigger operations, which are listed alphabetically on this page.
- Create a Composite Trigger
- List Component Events for a Composite Trigger
- Modify a Composite Trigger
- Read a Composite Trigger
Formatting specifications for each web service, including details about parameter requirements, are provided.
Note
For information on Trigger web services that are applicable to all trigger types, see:
Create a Composite Trigger
Description | |
---|---|
URI | http://host_name/uc/resources/trigger |
HTTP Method | POST |
Description | Retrieves information for the specified trigger. |
Example URI | http://localhost:8080/uc/resources/trigger |
Consumes Content-Type | application/xml, application/json |
Produces Content-Type | n/a |
Example Request | |
Trigger Properties | |
Trigger Component Properties |
|
Trigger-Related Record Properties | |
Example Response |
|
List Component Events for a Composite Trigger
Description | |
---|---|
Consumes Content-Type | Application/XML & Application/JSON |
Description | List component events |
Authentication | HTTP Basic |
URI | http://host_name/uc/resources/trigger/listcomponentevents http://host_name/uc/resources/trigger/listComponentEvents |
HTTP Method | GET |
Example URI | http://localhost:8080/uc/resources/trigger/listcomponentevents?triggername=test http://localhost:8080/uc/resources/trigger/listComponentEvents?triggername=test http://localhost:8080/uc/resources/trigger/listcomponentevents?triggerid=123456789 http://localhost:8080/uc/resources/trigger/listComponentEvents?triggerid=123456789 |
Example Response | See List Component Events: XML and JSON Examples |
Trigger Properties | See Read a Composite Trigger: URI Parameters. |
Produces Content-Type | application/xml, application/json |
Modify a Composite Trigger
Read a Composite Trigger
Description | |
---|---|
URI | http://host_name/uc/resources/trigger |
HTTP Method | GET |
Description | Retrieves information for the specified trigger. |
URI Parameters | |
Example URI | |
Consumes Content-Type | n/a |
Produces Content-Type | application/xml, application/json |
Trigger Properties | |
Trigger Component Properties |
|
Trigger-Related Record Properties | |
Example Response |
|
Read a Composite 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 |
|
Composite Trigger: XML and JSON Examples
In the XML web service, the exportReleaseLevel, exportTable, retainSysIds, and version properties are specified as attributes in the <trigger> element.
Examples | XML | JSON |
---|---|---|
Example for Trigger | ||
Example for Trigger-Related Records | ||
Example for Composite Trigger Components | ||
List Component Events - Response | ||
Examples for Trigger-Related Records | Variables Notes | Variables Notes |
Properties
Trigger Properties - All Triggers
Property | UI Field Name | Description | Specifications | Required |
---|---|---|---|---|
| Action | For all trigger types except Manual and Temporary; Action to take on a non-business day or holiday (see | Valid values:
Default is Do Not Trigger (1). Note The following values are valid only for Cron and Time triggers:
| Y |
| Calendar | Calendar that defines the business days, holidays, and other special days that determine the run dates for the task(s) specified in the trigger. | Default is System Default. | Y |
| n/a | User-Defined field. | The label is included only if a value has been defined for the User Defined Trigger Field 1 Label Universal Controller system property. | N |
| n/a | User-Defined field. | The label is included only if a value has been defined for the User Defined Trigger Field 2 Label Universal Controller system property. | N |
| Description | Description of this trigger. | N | |
| Disabled By | System-supplied. If Status = Enabled, ID of the user who most recently disabled this trigger. | Read-only. | N |
| Disabled Time | System-supplied. If Status = Enabled, Date and time that the trigger was disabled. | Read-only. | N |
| Status | System-defined; Specification for whether or nor the trigger is enabled. Only enabled triggers are processed by the Controller. | Read-only. | N |
| Enabled By | System-supplied. If Status = Enabled, ID of the user who most recently enabled this trigger. | Read-only. | N |
| Enabled Time | System-supplied. If Status = Enabled, Date and time that the trigger was enabled. | Read-only. | N |
| n/a | For Modify Trigger web services; specification for whether or not to exclude related records from the update, even if they are provided in the request. Note In XML web services, | Valid values: true/false (default is false). | N |
| n/a | Universal Controller release that the record was exported from. Note In XML web services, | read only | N |
| n/a | Record table information. Note In XML web services, | read only | N |
| Forecast | For Cron, Temporary, and Time triggers only; Date and time when this trigger will be satisfied for the next number days, as specified in the Forecast Period In Days Universal Controller system property. The Controller writes the forecasting entries to the Forecasts List. | Boolean; Valid values: true/false. Default is false. | N |
| Name | Name used within the Controller to identify this trigger. | Maximum 255 alphanumerics. | Y |
| Next Scheduled Time | System-supplied; for time-based triggers. If Status = Enabled, the next date and time this trigger will be satisfied. See Displaying Trigger Forecast Information. | Read-only. | N |
| Member of Business Services | N | ||
| Exclude Backup | Set only if | Boolean; Valid values: true/false. Default is false. | N |
| Special Restriction | Indication of whether or not you want to specify additional parameters that tell the Controller how to handle exceptions, such as when the trigger is satisfied on a holiday or non-business day. You can specify simple and/or complex restrictions. For example, you can specify a | Boolean; Valid values: true/false. Default is false. | N |
| Restriction Adjective | Type of selection for | Valid values:
Default is Every (0). | Y |
| Complex Restriction | Set only if | Boolean; Valid values: true/false. Default is false. | Y |
| Restriction Mode | Set only if | Valid values:
Default is Or (2). | Y |
| Restriction Noun | Day to restrict the trigger to. Note The Calendar for the trigger is used to verify Custom Day references. | Valid values:
| Y |
| Restriction Noun(s) | Day to restrict the trigger to. Used with Example: <restrictionNouns> <restrictionNoun>Business Day</restrictionNoun> </restrictionNouns> To specify a Custom Day, use the name of the Custom Day. For example: XML <restrictionNouns> <restrictionNoun>Monday</restrictionNoun> <restrictionNoun>CustomDay1</restrictionNoun> </restrictionNouns> JSON "restrictionNouns": [ { "value": "Monday" }, { "value": "CustomDay1" } ] To specify a Local Custom Day, use the local attribute. For example: XML <restrictionNouns> <restrictionNoun local="true">CustomDay2</restrictionNoun> </restrictionNouns> JSON "restrictionNouns": [ { "local": true, "value": "CustomDay1" } ] Note The Calendar for the trigger is used to verify Custom Day references. | Valid values:
| Y (if restrictionComplex is true) |
| Restriction Nth Amount | Set only if | Integer | Y |
| Restriction Qualifier | Period to restrict the trigger to. Note The Calendar for the trigger is used to verify Custom Day references. | Valid values:
| Y |
| Restriction Qualifier(s) | Period to restrict the trigger to. Used with Example: <restrictionQualifiers> <restrictionQualifier>Month</restrictionQualifier> </restrictionQualifiers> To specify a Custom Day, use the name of the Custom Day. For example: XML <restrictionQualifiers> <restrictionQualifier>Jan</restrictionQualifier> <restrictionQualifier>CustomDay1</restrictionQualifier> </restrictionQualifiers> JSON "restrictionQualifiers": [ { "value": "Jan" }, { "value": "CustomDay1" } ] To specify a Local Custom Day, use the local attribute. For example: XML <restrictionQualifiers> <restrictionQualifier local="true">CustomDay2</restrictionQualifier> </restrictionQualifiers> JSON "restrictionQualifiers": [ { "local": true, "value": "CustomDay1" } ] Note The Calendar for the trigger is used to verify Custom Day references. | Valid values:
| Y (if restrictionComplex is true) |
| Simple Restriction | Set only if | Boolean; Valid values: true/false. Default is false. | Y |
| n/a | Specification for whether or not the web service will persist the sysId property.
Note In XML web services, | Valid values: true/false (default is true). | N |
| Retention Duration | Set only if | Integer | N |
| Purge By Retention Duration | Specification for whether triggered task instances can be purged by retention duration. | Boolean; Valid values: true/false. Default is false. | N |
| Retention Duration Unit | Set only if | Valid values:
Default is Days (4). | N |
| Simulate | For Cron, Temporary, and Time triggers only; Enables the override of the Enable Trigger Simulation Universal Controller system property specification for whether or not to simulate the launching of tasks when triggers are eligible to fire. (If | Valid values:
Default is --System Default – (0). | N |
| Situation | Type of day that causes the Controller to initiate the specified | Valid values:
Default is Holiday (1). | Y |
| Skip Trigger if Active | Deprecated. Indication for whether or not the Controller should skip the next run of the specified task(s) if the previous run has not gone to a Complete status (that is, it is still active). | Boolean; Valid values: true/false. Default is false. | N |
| Skip After Date | Date after which the trigger will be skipped. | N | |
| Skip After Time | Time after which the trigger will be skipped. | N | |
| Skip Before Date | Date before which the trigger will be skipped. | N | |
| Skip Before Time | Time before which the trigger will be skipped. | N | |
| Task Launch Skip Condition | Controls when launching a task for the trigger will be skipped. Note When reading a Trigger, both | Valid values:
Default is None (0). | N |
| Skip Count | Specification that the Controller should skip the next N times that this task is triggered. | Integer; Default is 0. | N |
| Skip Date List | Date(s) on which the trigger will be skipped. | ||
| Skip Restriction | Specification for when the trigger should skip and not launch the task(s). | Valid values:
Default is None (0). | |
| n/a | System ID field in the database for this trigger. | Persisted only if retainSysIds is set to true. | N |
| Tasks | Name of the task(s) being triggered when this trigger is satisfied.
| Y | |
| Time Zone | Name of the time zone that will be applied to the time(s) specified in the trigger. | Y | |
| n/a | For Read and List web services; specification of the version being read or listed. Note In XML web services, | Y |
Trigger Properties - Composite Trigger
Property | UI Field Name | Description | Specifications | Required |
---|---|---|---|---|
| Enabled End | End time of the period during which the trigger should be active. | Use 24-hour time; format is hh:mm | Y |
| Enabled Start | Start time of the period during which the trigger should be active. | Use 24-hour time; format is hh:mm | Y |
| Queue Depth | Number of events that are maintained in the queue for each component at any time. To maintain | Integer; Valid values: 1-100. Default is 100. | N |
| Restrict Times | Indication that the trigger is active only during the period specified by | Boolean; Valid values: true/false. | N |
| Time Limit | Amount of time (in | Integer | N |
| Time Limit Unit | Unit of time specified in the | Valid Values:
Default is Minutes (2). | N |
Trigger Properties - All Composite Trigger Components
Property | UI Field Name | Description | Specifications | Required |
---|---|---|---|---|
| Action | For all trigger types except Manual and Temporary; Action to take on a non-business day or holiday (see | Valid values:
Default is Do Not Trigger (1). Note The following values are valid only for Cron and Time triggers:
| Y |
| Description | Description of this component. | N | |
| Enabled End | End time of the period during which the component should be active. | Use 24-hour time; format is hh:mm | Y |
| Enabled Start | Start time of the period during which the component should be active. | Use 24-hour time; format is hh:mm | Y |
| Name | Name used within the Controller to identify this component. | Maximum 255 alphanumerics. | Y |
| Restrict Times | Indication that the trigger is active only during the period specified by | Boolean; Valid values: true/false. | N |
| Special Restriction | Indication of whether or not you want to specify additional parameters that tell the Controller how to handle exceptions, such as when the trigger is satisfied on a holiday or non-business day. You can specify simple and/or complex restrictions. For example, you can specify a | Boolean; Valid values: true/false. Default is false. | N |
| Restriction Adjective | Type of selection for | Valid values:
Default is Every (0). | Y |
| Complex Restriction | Set only if | Boolean; Valid values: true/false. Default is false. | Y |
| Restriction Mode | Set only if | Valid values:
Default is Or (2). | Y |
| Restriction Noun | Day to restrict the trigger to. Note The Calendar for the Composite trigger is used to verify Custom Day references. | Valid values:
| Y |
| Restriction Nth Amount | Set only if | Integer | Y |
| Restriction Qualifier | Period to restrict the trigger to. Note The Calendar for the Composite trigger is used to verify Custom Day references. | Valid values:
| Y |
| Simple Restriction | Set only if | Boolean; Valid values: true/false. Default is false. | Y |
| Situation | Type of day that causes the Controller to initiate the specified | Valid values:
Default is Holiday (1). | Y |
| Built-in Variable Prefix | Prefix that enables built-in variables to be propagated up to the Composite trigger. | N |
Trigger Properties - Composite Trigger Time Component
Property | UI Field Name | Description | Specifications | Required |
---|---|---|---|---|
| Adjust Interval To Enable Start | Set only if | Boolean; Valid values: true/false. Default is true. | N |
| Adjustment Amount | Set only if | Integer. | Y |
| Adjustment Type | Set only if | Valid values:
Default is Day (1). | Y |
| Date Adjective | If For example, to specify the 2nd to last day of the month (last day of the month less one day), select | Valid values:
Default is Every (0). | Y |
| Date Adjustment | If For example, to specify the 2nd to last day of the month (last day of the month less one day), select | Valid values:
Default is None (0). | N |
| Date Noun | Type of day you want to select. Used in conjunction with XML To specify a Local Custom Day, use the local attribute. For example: Note The Calendar for the Composite trigger is used to verify Custom Day references. | Valid values:
| Y |
| Date Qualifier | Period for your date selection. Used in conjunction with dateNoun and dateAdjective . For example, to specify "the 15th business day of the month," select dateAdjective = Nth, dateNoun = Business Day, dateQualifier = Month, and nthAmount = 15.To specify a Custom Day, use the name of the Custom Day. For example:
To specify a Local Custom Day, use the local attribute. For example: Note The Calendar for the Composite trigger is used to verify Custom Day references. | Valid values:
| Y |
| Day Interval | Interval (number of days) at which this trigger will run. | Integer. | Y |
| Day Style | Indication of when this trigger will be run. | Valid values:
Default is Simple (1). | Y |
| Event Match Type | Controls whether events from the Time component will be used for a single match or multiple matches at the Composite trigger level. | Valid values:
Default is Single (1). Note You can select Multiple only if | N |
| Friday | Set only if | Boolean; Valid values: true/false. Default is false. | N |
| Interval Start | First day of the interval on which this trigger will run. | Format: yyyy-mm-dd | Y |
| Monday | Set only if | Boolean; Valid values: true/false. Default is false. | N |
| Nth Amount | Value of N. | Integer | Y |
| Saturday | Set only if | Boolean; Valid values: true/false. Default is false. | N |
| n/a | Indication of when this trigger will be run. | Valid values:
Default is Daily (1). | Y |
| Initial Time Offset | Set only if | Format is hh:mm | Y |
| Enable Offset | Set only if | Boolean; Valid values: true/false. Default is false. | N |
| Sunday | Set only if | Boolean; Valid values: true/false. Default is false. | N |
| Thursday | Set only if | Boolean; Valid values: true/false. Default is false. | N |
| Time | Time when the trigger will be run. | Format is hh:mm, using 24-hour time. | Y |
| Time Interval | Number of | Integer | Y |
| Time Interval Units | Type of time interval. | Valid values:
Default is Hours (3). | Y |
| Time Style | Indicates whether this trigger is for a specific time or a series of times. | Valid values:
Default is Absolute (1). | N |
| Tuesday | Set only if | Boolean; Valid values: true/false. Default is false. | N |
| Wednesday | Set only if | Boolean; Valid values: true/false. Default is false. | N |
Trigger Properties - Composite Trigger File Monitor Component
Property | UI Field Name | Description | Specifications | Required |
---|---|---|---|---|
| File Monitor | Name of the File Monitor task to be triggered. | Y |
Trigger Properties - Composite Trigger Task Monitor Component
Property | UI Field Name | Description | Specifications | Required |
---|---|---|---|---|
| Name | Name of the Task Monitor task to be triggered. | Y |
Trigger Properties - Composite Trigger Variable Monitor Component
Property | UI Field Name | Description | Specifications | Required |
---|---|---|---|---|
| Name | Name of the Variable Monitor task to be triggered. | Y |
Trigger Properties - Composite Trigger Email Monitor Component
Property | UI Field Name | Description | Specifications | Required |
---|---|---|---|---|
| Name | Name of the Email Monitor task to be triggered. | Y |
Trigger Properties - Composite Trigger Universal Monitor Component
Property | UI Field Name | Description | Specifications | Required |
---|---|---|---|---|
| Name | Name of the Universal Monitor task to be triggered. | Y |
Trigger-Related Records Properties: Variables
Property | UI Field Name | Description | Specifications | Required |
---|---|---|---|---|
| Description | Description of the variable. | N | |
| Name | Name of the variable. | Y | |
| Value | Value of the variable. | Y |
Trigger-Related Records Properties: Notes
Property | UI Field Name | Description | Specifications | Required |
---|---|---|---|---|
| n/a | System ID field in the database for the Note. | N | |
| Text | Text of the Note. | N | |
| Title | Title of the Note. | N |