Configure events in Jitterbit App Builder
Introduction
The following Intrinsic Events can be configured to have associated Actions or Validations at the Data Layer and the Business Logic Layer:
-
Delete – Associated Action(s) or Validation(s) will trigger upon a record being Deleted.
-
Insert – Associated Action(s) or Validation(s) will trigger upon a record being Inserted.
-
Save – Associated Action(s) or Validation(s) will trigger upon a record being Saved.
-
Update – Associated Action(s) or Validation(s) will trigger upon a record being Updated.
Event detail options
The following can be configured for an Event:
-
Event Information:
-
Name: The name used to define the event.
-
Refresh Scope:
-
Data Object: Event can affect other rows in this data object.
-
Global: Event can affect other data objects, reload everything.
-
None: Input values are unaffected by the event.
-
Row: Event can affect values in this row.
-
-
Active: Indicates whether the Event is currently active or not.
-
-
Messages:
-
Confirmation: The Message configured here is displayed to the User to confirm if they wish to proceed with the action.
-
Success: The Message will be displayed to the User after a successful Action has been performed.
-
Failure: The Message will be displayed to the User after an Action has failed.
-
-
Execution Properties:
-
Skip Parent: If enabled, the event will skip any parent Events and associated Actions.
-
Transaction: Process the event's actions as a transaction.
-
Execution Type: Determines when the Event will run. Options include:
-
Foreground: Event executes in the foreground.
-
Launch Now (Background): Event will be executed in the background when invoked.
-
Launch Now or via Schedule (Background): Event will be executed in the background when invoked or scheduled.
-
Launch via Schedule (Background): Event will be executed in the background when scheduled.
Some or all of the following appear when selecting an option other than Foreground:
-
Max Concurrency: Maximum number of concurrent events.
-
Blocking: (For events called by event actions.) If selected, App Builder waits for the event to complete before processing further actions.
-
Run as User: User that the scheduled event runs as.
-
Operating Hours:
-
Pause Execution: Time to pause the schedule.
-
Resume Execution: Time to resume the schedule.
-
-
-
-
Locking:
- Use Lock – enables event locking. Use caution with this option, see Event concurrency and locking
Custom events
In addition to Intrinsic Events, you can define Custom Events which can have Actions or Validations associated with them. Custom Events can be fired from the Application UI Layer from the following Control Types: Text, Images, Buttons, Lists.
Where events get configured
Events can be configured on the Business Logic Layer and/or the Data Layer. Best practice is to configure any Events on the Data Layer, unless there is a business reason to configure it on the Business Logic Layer instead. Reasons are discussed in this article.
Important
You can configure an Action/Validation on BOTH the Data Layer and the Business Logic Layer. App Builder will not error on a User setting up in both locations, and the result is that the Event gets fired twice. Use caution when configuring Events to put them in the correct location.
Data layer
It is faster, easier and simpler to maintain and use Events when they are configured on the Data Layer. Best practice when configuring Events is to always configure Events on the Data Layer, unless:
- You are configuring Actions or Validations on Intrinsic Events that you only want run on specific defined pages
- The associated Action/Validation requires binding that is not on the Table
For both reasons listed above, you would instead want to configure the Event on the Business Logic Layer.
To Configure an Event on the Data Layer
The following steps describe how to configure the Event on the Data Layer. Events typically require a Business object Rule to be created prior to this step, and for you to connect the Event to the Application UI Layer after this step.
- Navigate to the App Workbench
- Click Tables
- Locate the Table you want to configure the Event for and click the Events icon
-
Configure the Event and associated Action or Validation information
- If using an Intrinsic Event, select it from the Data Storage Events panel, click the pencil edit icon, and then click Create & Register on the Actions or Validations panel (depending on type of Event being configured)
- If using a Custom Event, click + Table Event from the Data Storage Events panel and assign a unique Name and Save. Next click Create & Register on the Actions or Validations panel (depending on type of Event being configured). Select the Rule created to associate with the Event, assign any additional information required, and click Save.
Business logic layer
As discussed in the Data Layer section, Events should generally be configured on the Data Layer. There are few exceptions to this, reasons you want to configure an Event on a Business Logic Layer instead include:
- You are configuring Actions or Validations on Intrinsic Events that you only want run on specific defined pages.
- The associated Action/Validation requires binding that is not on the Table.
Configuring an Event on a Business Object lets you skip the parent (the Data Object).
To Configure an Event on the Business Logic Layer
The following steps describe how to configure the Event on the Business Logic Layer. Events typically require a Business Rule to be created prior to this step, and for you to connect the Event to the Application UI Layer after this step.
- Navigate to the App Workbench
- Click Rules
- Locate the Business Rule you want to configure the Event for and click on the corresponding Events button. For example: Employee (Source)
-
Configure the Event and associated Action or Validation information
- If using an Intrinsic Event, select it from the All Events panel, click the pencil edit icon, then click Create & Register on the Actions or Validations panel (depending on type of Event being configured)
- If using a Custom Event, click + Rule Event from the All Events panel and assign a unique Name. Next click Create & Register on the Actions or Validations panel (depending on type of Event being configured). Select the Rule created to associate with the Event, assign any additional information required, and click Save.