The anatomy of Jobs
job:ready
Event for a Job named
[domain]:[operation]
is published. Your Listener
can then be configured to respond to that Action via it’s Event.job:ready
event, for the workbook:export
Job, which was defined in our Workbook.
api.jobs.create()
method.
Creating a custom Job in your Listener enables any Event to trigger a Job.
Here’s an example of creating a custom Job in a Listener:
Job Name | Description |
---|---|
Extract | Extracts data from the specified source. |
Map | Maps data from it’s ingress format to Blueprint fields. |
DeleteRecords | Deletes records from a dataset based on specified criteria. |
Export | Exports data to a specified format or destination. |
MutateRecords | Alters records in a dataset according to defined rules. |
Configure | Sets up or modifies the configuration of a Space. |
AiAssist | Utilizes AI to assist with tasks such as data categorization. |
FindReplace | Searches for specific values and replaces them. |
space:configure
Job is the only system-level Job published for developer
consumption. This is a special Job that allows developers to configure their
Spaces dynamically. See our Space
Configuration documentation for more
information.Event | Description |
---|---|
job:created | Fires when a Job is created, but before it does anything. |
job:ready | Fires when a Job is ready to move into the execution stage, but before it does anything. |
job:updated | Fires when there is an update to a Job while it is executing. |
job:completed OR job:failed | job:completed fires when a Job is completed successfully, job:failed fires if a Job is completed but fails. One of these events will fire upon Job completion, but never both. |
job:outcome-acknowledged | Fires when a user acknowledges the completion of a Job through a UI popup. |
job:ready
.
For more on managing your Job see Working with Jobs.
export
, extract
, map
, delete
, etcmanual
or immediate
created
, planning
, scheduled
, ready
, executing
, complete
,
failed
, cancelled
label | A user-friendly name for the action. |
description | A string describing the action. |
tooltip | Additional info on hover. |
schedule | weekly , daily , hourly |
operation | The operation to perform. |
mode | foreground, background, toolbarBlocking |
primary | Whether this action is considered the primary or default action. |
confirm | Whether user confirmation is required before the action is executed. |
icon | Icon representative of the action. |
inputForm | { type: simple, fields: { key, label, description, type, *config, constraints } |
*config | { options: { value, label, description, color, icon, meta } } |
resource | Identifier for the subject resource. |
type | resource, collection |
query | The query used to locate or identify the subject resource. |
params | Parameters that detail or modify the subject query. |
heading | The heading text summarizing the outcome of the action. |
acknowledge | Indicates if the outcome requires user acknowledgment. |
message | Detailed message describing the outcome. |
buttonText | Label for the button to acknowledge the outcome. |
next | { id, url, download, wait, snapshot, retry } |
foreground
, background
, toolbarBlocking
job:ready
event and executing the handler callback. There is an optional
tick function which updates the Job’s progress.executing
.
Progress
is a numerical or percentage value indicating the completion status of the work.
You may also provide an estimatedCompletionAt
value which will display your estimate of the remaining processing time in the foreground Job overlay.
Additionally, the Jobs Panel will share visibility into the estimated remaining time for acknowledged jobs.
complete
. This status update includes an optional outcome message which will be displayed to the user.
Use this to provide detail on the outcome of the Job.
outcome
.
next > Id
.
In this code below, we will create a button that says “See all downloads” with this path: space/us_sp_1234/files?mode=export
next > Url
.
In this code below, we will create a button that says “Go to Google”. It will open in a new tab.
next > Url
.
In this code below, we will create a button that says “Download this file”.
next > Retry
.
In this code below, we will create a button that says “Retry”.