Server Triggers

The workflow execution log displays each server trigger and the associated event type and context type for the trigger. Use this information to view the order in which actions and transitions executed and their corresponding triggers. You can expand and collapse each trigger to view the actions and transitions and the associated status for the action or transition.

The log displays the executed triggers for a specific workflow instance and a specific state visit in that workflow instance. Depending on the workflow definition and the events that occur on the record, for example, viewing and saving the record, the workflow may enter the same state multiple times. Consequently, multiple entries for the same state may appear in the workflow history. The workflow history does not include any state not entered by the workflow.

For an example of a record entering a state multiple times, see Approval Workflow Example.

Note:

Client triggers do not appear in the workflow execution log.

The workflow execution log displays the server triggers in the order that the triggers execute. They do not execute in a fixed order. The order in which the triggers appear depends on the workflow definition and the events on the record.

The following table lists the server triggers:

Trigger

Description

ONENTRY

Record enters the state.

ONEXIT

Record exits the state.

BEFORELOAD

Before the record is loaded.

BEFORESUBMIT

Before the record is submitted to the database.

AFTERSUBMIT

After the record is saved to the database.

SCHEDULED

NetSuite scheduler executes the workflow based on the workflow schedule.

Additionally, a server trigger can be record, workflow, or time based:

Workflows use the following rules for the order in which the server triggers appear:

Related Topics

Workflow Execution Log
Event Types and Contexts
Action and Transitions Status
Evaluation of Conditions
Rejected Actions and Transitions
Asynchronous Execution for Workflows
Testing and Troubleshooting Workflows
Approval Workflow Example

General Notices