Business Events
Form ID: (SM302050)
You use this form to configure the system to perform actions if a specific business event has happened in the system: if the data you specify has been changed in the system, or if particular conditions have occurred, which the system checks for at the schedule you specify. You can also use this form to review existing business events and make any needed changes.
For more details about business process monitoring and business events, see Using Business Events.
Form Toolbar
The form toolbar includes standard and form-specific buttons and commands. For the list of standard buttons, see Form Toolbar and More Menu. The form-specific commands are listed in the following table.
Button | Description |
---|---|
View Screen | Navigates to the form selected in the Screen Name box. |
View History | Opens the Business Event History (SM502030) form, where you can review the history of the occurrence of the event selected in the Event ID box. |
Summary Area
In this area, you can specify the settings of a new business event or select an existing business event for editing.
Element | Description |
---|---|
Event ID | Required. The identifier of the business event. |
Type |
The type of the business event, which can be
one of the following:
|
Action Name |
The display name of the action to be used for the corresponding command on the More menu of the generic inquiry form (in the Actions category). The box appears on the form only if the Trigger by Action option is selected in the Type box. |
Add Action to Process All |
A check box that you select to indicate that the system should display two commands on the More menu of the generic inquiry form (in the Actions category): <Action Name> and <Action Name> (All). If you clear this check box, only the <Action Name> command that corresponds to the action will be displayed. The check box appears on the form only if the Trigger by Action option is selected in the Type box and a generic inquiry is selected in the Screen Name box. |
Raise Event | The way the system should generate the business event for the records that satisfy the
conditions specified on the Trigger Conditions tab. One of the
following options can be selected:
|
Group Records By |
The field by which records are grouped. This box contains a list of all internal fields
of the generic inquiry in the The box becomes available if the For Group of Records option is selected in the Raise Event box. |
Use Previous Value | A check box indicating (if selected) that the previous value of the specified generic inquiry field will be used for grouping records when the event is triggered. When this check box is cleared, the new value of the field will be used when the event is triggered. The check box becomes available if the For Group of Records option is selected in the Raise Event box. |
Active | A check box that indicates (if selected) that this business event is active and the system can process the subscribers specified on the Subscribers tab if this business event has occurred. |
Description | A description of the business event. |
Screen Name |
Required. The name of the inquiry form or data entry form that defines the data the system should monitor to detect whether this business event has occurred. The inquiry form can be any generic inquiry that does not have grouping specified on the Grouping tab of the Generic Inquiry (SM208000) form. For business events of the Triggered by Record Change type, the system displays a warning for this box if any of the following is true:
Tip:
If a business event needs to be triggered by the changes made in the MYOB Acumatica Customer
Portal, the related generic inquiry must be added to the Customer Portal site
map. If the related generic inquiry is used as an entry point, then the entry point form
should be added to the Customer Portal site
map. In the MYOB Acumatica Customer
Portal, forms are added to the site map on the Portal Map (SM200521)
form. |
Screen ID |
A read-only box that displays the identifier of the inquiry form or data entry form that defines the data the system should monitor to detect whether this business event has occurred. The system fills in this box automatically when you select a value in the Screen Name box. |
Shared Filter to Apply |
The shared filter that the system should apply to the records retrieved by the generic inquiry selected in the Screen Name box. The shared filter can be any of the filters that are listed for the generic inquiry on the Filters (CS209010) form. By default, All Records is selected, which means that no shared filter is applied to the records. This box appears on the form only if Trigger by Record Change is selected in the Type box. For details on shared filters, see Advanced Filters: General Information. |
Inquiry Parameters |
A button that you can click to open the Inquiry Parameters dialog box, where you can specify the values of the parameters to be used for the inquiry selected in the Screen Name box. By default, the system runs the inquiry with the default values of the parameters. The button appears on the form only if Trigger by Record Change is selected in the Type box and is available only if the inquiry selected in the Screen Name box has parameters. |
Column | Description |
---|---|
Display Name | The name of the parameter of the inquiry, as the name is displayed in the selection area of the inquiry form. |
Value |
The parameter value that should be used by the system for retrieving data for this business event. The box initially contains the default value (if any) of the parameter, but you can override this value. If you change the value in a row of this column, the system clears the Use Default Value check box in this row. You can select the check box to discard the new value and cause the default value to be inserted in this column again. |
Use Default Value |
A check box that indicates (if selected) that the default value of the parameter is used by the system for retrieving data for this business event. By default, this check box is selected; the system clears this check box if you change the value in the Value column. The check box is available only if it is cleared. If you select this check box, the value specified in the Value column is discarded and the default value is used instead. |
The dialog box has the following buttons. | |
Reset to Defaults | Discards all changes in the table and displays the default settings. |
OK | Closes the dialog box. |
Trigger Conditions Tab
You use this tab to configure and review the conditions that define when the business event has occurred. The active conditions specified on this tab need to be met in order for the event to be considered as having occurred.
Button | Description |
---|---|
Move Row Up | Moves the selected row up by one position. |
Move Row Down | Moves the selected row down by one position. |
Column | Description |
---|---|
Active | A check box that indicates (if selected) that the condition is active and will be used by the system to determine that the business event has occurred. |
Brackets | The opening parenthesis (or parentheses if you are composing a logical expression with multiple conditions). |
Operation |
The operation that defines how the data should have been changed for the condition to be met. The operation can be applied to any of the following:
The operation can be one of the following:
This column appears only if the selected option in the Type box of the Summary area is Trigger by Record Change. |
Table Name |
The table that contains the record whose changes the system should monitor. The table can be any of the tables included in the generic inquiry or the primary view of the data entry form that is specified in the Screen Name box in the Summary area. If the selected option in the Type box of the Summary area is Trigger by Record Change, you select a table name in this column only if the selected Operation is any of the following: Field Changed, Field Value Increased, Field Value Decreased, New Field Value, or Old Field Value. |
Field Name |
The field (in the table specified in Table Name) whose changes the system should monitor. If the selected option in the Type box of the Summary area is Trigger by Schedule or if the selected Operation is Field Changed, New Field Value, or Old Field Value, the field can be any of the fields included in the results table of the inquiry that is defined in the Screen Name box in the Summary area. If the selected Operation is Field Value Increased or Field Value Decreased, only the fields of the results table with numeric types are available. If the selected option in the Type box of the Summary area is Trigger by Record Change, you select a field in this column only if the specified Operation is any of the following: Field Changed, Field Value Increased, Field Value Decreased, New Field Value, or Old Field Value. You can also use the Formula Editor and specify formulas if you need the system to compare the values of different boxes and determine whether a business event should be triggered. |
Condition |
The logical operation that applies to the value of the selected field. The following options are available:
You select a condition in this column if the value of the Operation column is New Field Value or Old Field Value or if the selected option in the Type box of the Summary area is Trigger by Schedule. In other cases, the column is empty and unavailable. |
From Schema |
A check box that indicates (if selected) that the value can be selected from the predefined values of the field selected in the Field Name column. If a field is selected in the Field Name column and you select the From Schema check box, then in the Value 1 and Value 2 columns, a lookup box, drop-down list, or check box (depending on the control type of the selected schema field) is displayed. |
Value 1 |
The value for the logical condition used to filter the data. For date-relative and
user-relative values, you can use the parameters (such as You can also use the Formula Editor and specify formulas if you need the system to compare the values of different boxes and determine whether a business event should be triggered. The Formula Editor is available if the From Schema check box is cleared. |
Value 2 |
The second value for the logical condition used to filter the data. You specify a value in this column only if the value of the Condition column is Is Between. You can also use the Formula Editor and specify formulas if you need the system to compare the values of different boxes and determine whether a business event should be triggered. The Formula Editor is available if the From Schema check box is cleared. |
Brackets | The closing parenthesis (or parentheses if you are composing a logical expression with multiple conditions). |
Operator | The logical operator between conditions, which can be And or Or. |
Subscribers Tab
On this tab, you configure and review the list of subscribers to the business event. A subscriber to a business event is an entity in the system (such as an email notification or a script based on an import scenario) that the system processes in a particular way, based on the type of the entity, when the business event occurs. For example, if a subscriber is an email notification, the system sends an email or multiple emails according to the configured notification template. For more information about subscribers, see Business Events: Subscribers.
Button | Description |
---|---|
Move Row Up | Moves the selected row up by one position. |
Move Row Down | Moves the selected row down by one position. |
Create Subscriber |
Provides the following menu commands, which you can click to create a subscriber of a specific type. You click one of the following menu commands to create the subscriber of the corresponding type:
|
Column | Description |
---|---|
Active | A check box that indicates (if selected) that the subscriber is active and the system can process this subscriber if the business event has occurred. |
Type |
The type of the subscriber. The following types are available:
If you create a subscriber from this tab, when you save your changes on the applicable form and close the form, the system adds a row for the subscriber and fills in the type. If you add a subscriber that has already been created, you select the type manually. |
Subscriber ID |
The identifier of the subscriber. For details about what is used as the identifier for a particular subscriber, see Actions to Perform on Event Occurrence (Event Subscribers). If you create a subscriber from this tab, when you save your changes on the applicable form and close the form, the system fills in the ID. If you are adding a subscriber that has already been defined in the system, you select the subscriber in this column. For details about subscribers of business events, see Business Events: Subscribers. |
Stop on Error |
A check box that indicates (if selected) that the system should not process subsequent subscribers if an error has occurred for this subscriber. If the check box is cleared (the default setting), the system processes subsequent subscribers of this event regardless of any error for the current subscriber. The subscribers are processed in the order in which they are defined on this tab. If the check box is selected, the system considers the subscriber to be mandatory. That is, if the subscriber has not been processed successfully, on the Business Event History (SM502030) form, the system displays an error for the subscriber and for the business event. If the check box is cleared, the system considers the subscriber to be optional. That is, if the subscriber has not been processed successfully, on the Business Event History (SM502030) form, the system displays a warning for the subscriber and for the business event. |
Fields to Track Tab
You use this tab to configure and review the list of data fields whose values the system will track for the event. The system will store the new and previous value of each field when the value has changed.
By default, the system tracks all the data fields used to configure conditions on the Trigger Conditions tab. You cannot modify or delete these rows.
If you plan to use the previous value of a data field for configuring a subscriber, you should add this field to the table. Otherwise, the system will not store or return a previous value for the field.
The tab appears only if the value in the Type box of the Summary area is Trigger by Record Change.
The table toolbar includes only standard buttons. For the list of standard buttons, see Table Toolbar.
Element | Description |
---|---|
Track All Fields | A check box that indicates (if selected) that the system tracks all data fields from the DACs that are used for the generic inquiry or data entry form that is selected in the Screen Name box of the form. |
Column | Description |
---|---|
Table Name | The name of the table used for the generic inquiry or data entry form that is selected in the Screen Name box of the form. |
Field Name |
The name of the field from the selected table. If a generic inquiry is specified in the Screen Name box of the form, the system offers for selection only the data fields that were added to the Results Grid tab of the on the Generic Inquiry (SM208000) form. |
Element | Description |
---|---|
Unlabeled | The status of the schedule execution. |
Schedule ID | The identifier of the schedule. |
Execution Date | The date when the schedule was executed. |
Execution Result | The result of the execution. |
Event ID | The identifier of the business event. |
Description | The description of the business event. |
Screen ID | The identifier of the generic inquiry related to the business event. |
The dialog box has the following button. | |
Close | Closes the dialog box. |
Schedules Tab
You use this tab to configure and review the list of schedules for this business event. The system executes the generic inquiry that defines the data for the system to monitor and check the conditions on this data based on the schedule or schedules specified on this tab.
The tab appears only if the value in the Type box of the Summary area is Trigger by Schedule.
Button | Description |
---|---|
View Schedule History | Opens the View Schedule History dialog box, where you can view when the selected schedule (which you click before clicking this button) has been executed. |
Create Schedule | Opens the Automation Schedules (SM205020) form, where you can create a new schedule by which the system should check conditions on the data for monitoring. When you create a schedule and close the Automation Schedules (SM205020) form, the created schedule is added to the table on the tab. |
Column | Description |
---|---|
Active | A check box that indicates (if selected) that the schedule is active and the system can execute the generic inquiry that is specified in the Screen Name box in the Summary area and check the conditions specified on the Trigger Conditions tab based on this schedule. |
Schedule ID | The identifier of the schedule. |
Time Zone | The time zone for which the schedule is configured. |
Last Executed | The most recent date when the schedule was executed. |
Next Execution Date | The next date when the schedule will be executed. |
Element | Description |
---|---|
Unlabeled | The status of the schedule execution. |
Schedule ID | The identifier of the schedule. |
Execution Date | The date when the schedule was executed. |
Execution Result | The result of the execution. |
Event ID | The identifier of the business event. |
Description | The description of the business event. |
Screen ID | The identifier of the generic inquiry related to the business event. |
The dialog box has the following button. | |
Close | Closes the dialog box. |