Epoch

The epoch panel is a popup window offered to the user when selecting from when to start when configuring a polling trigger.

Specification

If the Epoch configuration is defined, there will be at least one item available in the Epoch panel: Choose where to start, which will allow the user to select an item the user wants to start with. Other items depend on the trigger type. The underlying data is retrieved via the Epoch RPC.

If the trigger type is id, then there is one more option available: All, which will allow the user to process all the items from the beginning. But, if the Epoch configuration is not specified, then the Epoch panel will not be available to the user.

If the trigger type is date, then three additional options are available for the user: All, Since specific date and From now on. Since specific date allows the user to start processing items from a specific day forward and From now on is similar, except the date is automatically set to the current date and time.

Retrieving data for the Epoch panel

You can customize how the data for the Epoch panel is retrieved by providing specific request overrides in the Epoch section. These overrides are then merged with trigger configuration to retrieve the data.

You also have to provide the labels and dates for the returned items. You can do that with the response.output directive. Dates are not required, but it is best to provide them for a better user experience.

To correctly return Epoch panel items from your Epoch RPC, the output section of response should contain only two items: label and date. The limit is used to limit the number of items displayed to the user when using the Epoch panel. Label is what the user sees when selecting items from the select box and date is when this item was created (updated), which the user will see in gray.

All other directives are inherited from the trigger's communication and can be overridden by specifying them inside the Epoch RPC.

Output best practices

Name
Recommended limit of ...
Value

Request Count

... calls performed by RPC

3

Record Count

... paginated records

300 or 3 * number of objects per page

Available IML variables

These IML variables are available for you to use everywhere in this module:

Variable
Description

now

Current date and time

environment

TBD

temp

Contains custom variables created via the temp directive.

parameters

Contains the module’s input parameters.

connection

Contains the connection’s data collection.

common

Contains the app’s common data collection.

data

Contains the module’s data collection.

scenario

TBD

metadata.expect

Contains the module’s raw parameters array in the way you have specified it in the configuration.

metadata.interface

Contains module’s raw interface array in the way you have specified it in the configuration.

Additional variables available for the response object:

Variable
Description

output

When using the wrapper directive, the output variable represents the result of the outputdirective.

Additional variables available after using the iterate directive, i.e. in wrapper or pagination directives:

Variable
Description

iterate.container.first

Represents the first item of the array you iterated.

iterate.container.last

Represents the last item of the array you iterated.

Additional variables available for pagination and response objects:

Variable
Description

body

Contains the body that was retrieved from the last request.

headers

Contains the response headers that were retrieved from the last request.

items

When iterating this variable represents the current item that is being iterated.

All variables available in polling trigger communication are also available in Epoch.

Last updated