Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
Overview: Simple tasks in workflow - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • Overview: Simple tasks in workflow
KB0538588

Overview: Simple tasks in workflow


11799 Views Last updated : Apr 14, 2025 public Copy Permalink English (Original)
  • English (Original)
  • Japanese
KB Summary by Now Assist

Issue

The Create Task activity allows the designer to decide if the workflow should wait for the task to complete before transitioning to the next Activity. If the designer selects Wait for Complete, the Workflow inserts the task into the database and waits for an update from that record. When the user changes the state of the task, the Workflow Engine is notified of the update event and the Activity will finish and transition to the next Activity.

Completed tasks have a State change when they are in a rollback path.

  • The state of tasks in a rollback path will set to Pending.
  • Tasks that are the destination of a Rollback To Activity will be set to Open.

Resolution

Goals

  • Assign tasks to Change Requests
  • Rolling back tasks.

Tasks in ServiceNow workflow

The ServiceNow Workflow Editor provides three activities to assign and manage tasks using the Create Task activity. The tasks created from within a workflow typically appear inside a related list of the current record. The workflow engine creates the tasks and then waits for a Complete or Incomplete state to transition forward. The interaction between the state change of tasks and the workflow engine is through the update of the current record. The update event will invoke the glide script engine and fire the update event into the workflow.

  1. In the Workflow Editor click Open.
  2. Locate and select the K14 Change Task Example workflow.
    Your workflow should look like this:



  3. Select Gear Menu > Check Out
  4. Select Gear Menu > Properties



    Notice that this workflow is on the Change Request table. Because our other workflow is also on Change Request a different condition is set. This workflow is configured to run only when the Priority field is set to 3 – Moderate. As we test this time, we will actually have to change the Priority on the Change Request. Close the Workflow Properties window using the X in the upper right-hand corner of the form.
  5. Expand the Tasks category in the activities tree.
  6. Drag the Create Task activity onto the transition between Log Approval One and Approval Two – Create Task Example.





    Fill out the form as shown:
    • Name: Create a Change Task
    • Task Type: Change Task [change_task]
    • Assigned to: K14Task one user
    • Short Description: Task assigned to K14 User One
    • Instructions: Enjoy your conference!
      Notice the Wait for Completion checkbox. When checked, this will cause the workflow to wait for the task to be in a state of Complete or Incomplete before transitioning to the next activity.
  7. Click Submit
    Your screen should look like this:


    QUESTION: Find the Create Task in the rollback path. What will be the state of the Create Task in the Workflow Context Activity History related list if the Approval Two activity is rejected?
    Tasks have rolled back states, just like the Approvals did in the previous lab. If a Task is in the path of a rollback, its State is set to Pending. If a task is the target of a Rollback To transition, the task state is set to Open.

  8. Return to the main tab of your instance.
  9. Go to Change > Create New
  10. Set the Priority: 3 –Moderate
  11. Right-click in the form header and select Save.
  12. Scroll to the related lists
  13. Select the Approver tab
  14. Right-click > K14-Approver One, set the Requested approval to Approve.
  15. Select the Change Tasks Related List.


    Notice how the new task has been added to the Change Request.
  16. Right-Click > Close Task
  17. Select the Approvers related list

  18. QUESTION: We are going to reject the Requested approval. What will be the new state of K14-Approval One? Approval Two?
  19. Right-Click > Reject the K14-Approver Two Requested approval.
  20. Select the Change Tasks related list


    Note the rolled back state of the Change Task is set to Pending
  21. Select Show Workflow from the related links to view the workflow
  22. Close the browser tab of the Workflow Context view
  23. Select the Approvers related list
  24. Right-Click > Approve the K14-Approver One Requested Approval
  25. Select the Change Tasks related list
  26. Right-Click > Close Task
  27. Select the Approvers related list
  28. Right-Click > Approve the K14-Approver Two Requested Approval
  29. Select the Show Workflow related link


    The workflow context is displayed.

The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.