---
sourceDocument: Brazil ServiceNow AI Platform Capabilities
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/servicenow-platform

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil ServiceNow AI Platform Capabilities

ft:clusterId :

    - platcap

bundleId :

    - platcap

workflow :

    - Platform


---

# Generate workflow activity

# Generate workflow activity {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 3 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of Generate workflow activity

The Generate workflow activity in ServiceNow is designed to pre-create task or approval records for any subsequent task or approval activities in a workflow that runs on tables extendingTask.
This pre-generation enables tasks and approvals to be created in advance but still completed sequentially during flow execution.
It helps streamline workflows by establishing expected start and due dates based on estimated durations, improving visibility and planning.
Show full answer Show less  

## Key Features

* **Pre-creation of tasks and approvals:** When the Generate activity runs, it creates pending tasks and not requested approvals ahead of their execution point in the workflow.
* **Sequential completion:** Pre-generated activities still require completion in order during workflow progression.
* **Duration-based scheduling:** Expected start and due dates are calculated using the estimated duration of intermediate activities, considering the longest path in branched workflows to set realistic timelines.
* **Support for updates:** Multiple Generate activities can be used to refresh and update tasks or approvals if workflow conditions (like approvers) change mid-process.
* **Selective exclusion:** Activities can be excluded from generation by marking conditions with "Skip during generate," commonly used for rejected or incomplete states.
* **Input variables:** Options allow enabling or disabling creation of tasks and/or approvals during generation while still using them for duration calculations.

## Practical Implications for ServiceNow Customers

When implementing workflows on Task-based tables, using the Generate activity allows you to improve workflow predictability and management by having tasks and approvals ready in advance with clearly defined expected start and due dates. This is especially valuable for complex workflows with sequential or branched tasks and approvals, ensuring smoother execution and better tracking.

Customers can also maintain flexibility by refreshing generated activities if workflow details change, and control which activities participate in generation to align with business rules.

## Example Use Case

For instance, if a Generate activity runs on January 1, 2016, it sets the expected start and due dates of subsequent tasks based on their durations and dependencies. In a branched workflow, the longest path's timing determines when post-branch tasks start, ensuring accurate scheduling across parallel branches.  
The Generate activity immediately creates task or approval records from any task or approval activities placed after the Generate activity in the workflow path. These pre-generated tasks and approvals start when the task and approval activities are reached during flow execution. This allows a task to have a set of associated pre-generated sequential tasks or approvals, but still require them to be completed in order.{#r_Generate__wf-generate-shortdesc}
Note:  
This activity is only available when the workflow runs on a table that extends Task.

By default, the workflow does not create any tasks or approvals until it reaches them in
the workflow.  
The Generate activity follows all transitions through the workflow to each activity. For each activity:

* If it is a [task activity](https://servicenow-prod.fluidtopics.net/nqiQ2nsdBXNDDjUk2rd2aA "Task activities create and modify workflow tasks."), creates the task and sets:
  * The State to Pending
  * The Expected Start Date
  * The Due Date

  {#r_Generate__ul_n54_syc_x4}  
  Note:  
  Task activities run as the user whose actions complete the task the workflow was waiting for and advances the workflow.
* If it is an approval activity, creates the approvals and sets:
  * The approval State to Not Requested
  * The Expected Start Date
  * The Due Date

  {#r_Generate__ul_bxf_wyc_x4}  
  Note:  
  Approval activities run as the user whose actions match the approve or reject conditions the workflow was waiting for and advances the workflow.
{#r_Generate__ul_elb_syc_x4}

Expected start dates and due dates are calculated based on the Expected Duration of all of the tasks and approvals between the
Generate activity and the activity being updated. In the case of a
branched path (between a Branch and Join
activity), the longer duration will be used for any post-branch activities.

The Generate activity can be used more than once, and any tasks or
approvals will be refreshed with updated information. This is useful in situations where the
list of approvers or other important information is still editable while the workflow is in
process and it may be necessary to update or correct the generated approvals or tasks.  
To exclude a set of activities from the Generate activity, select the Skip during generate check box on any condition and its transitions will not be followed during the generate process. By default, the following conditions have the Skip during generate check box selected:

* Rejected (for any of the approval activities)
* No condition of If activity
* Continue condition of Turnstile activity
* Incomplete condition of Join activity
{#r_Generate__ul_slf_2zc_x4}

## Input variables

Input variables determine the initial behavior of the activity.
{#r_Generate__table_xql_rnw_w4__entry__2}

| Field | Description |
|-|-|
| Generate approvals | If selected, approvals are created when running the Generate activity. If cleared, the approvals are used to compute their estimated duration, but no approvals are created. |
| Generate tasks | If selected, tasks are created when running the Generate activity. If cleared, the tasks are used to compute their estimated duration, but no tasks are created. |
[Table 1. Generate activity input variables]

{#r_Generate__table_xql_rnw_w4}

## States

The activity state tells the workflow engine what to do with the activity.{#r_Generate__table_jr2_15w_w4__entry__2}

| State | Description |
|-|-|
| Executing | The activity is executing. |
| Finished | The activity finished running. See the result value for the outcome of the activity. |
| Cancelled | This activity, or the workflow that contains this activity, was canceled. |
[Table 2. Generate activity states]

{#r_Generate__table_jr2_15w_w4}

## Example

Figure 1. Generate workflow  
In this example, the following approvals are generated:

* Approval-2
* Approval-3
{#r_Generate__ul_ljs_t1d_x4}

Approval-4 is skipped since the Rejected condition of Approval-3 has
Skip during generate selected.  
Here is an example of using the Generate activity that describes the expected start and due dates:Figure 2. Generate workflow start and due date  
In this example, if the Generate activity is run on Jan 1, 2016, the following expected start dates and due dates would be set for the generated tasks.{#r_Generate__table_ckh_jbd_x4__entry__4}

| Task | Expected Start Date | Reason | Due Date |
|-|-|-|-|
| Task 1 (1 day) | Jan. 1, 2016 |   | Jan. 2, 2016 |
| Task 2 (1 day) | Jan. 2, 2016 | Task 1 is 1 day | Jan. 3, 2016 |
| Task 3 (2 days) | Jan. 1, 2016 |   | Jan. 3, 2016 |
| Task 4 (1 day) | Jan. 3, 2016 | Task 3 is 2 days | Jan. 4, 2016 |
| Task 5 (1 day) | Jan. 4, 2016 | Task 4 ends the latest before the Join | Jan. 5, 2016 |
[ ]

{#r_Generate__table_ckh_jbd_x4}

Notice that Task 5 starts on Jan. 4, 2016 since the longest path (based on due dates) to
the Join is Task 3/Task 4.

