Product documentation Docs
    • English
    • Deutsch
    • 日本語
    • 한국어
    • Français
  • More Sites
    • Now Community
    • Developer Site
    • Knowledge Base
    • Product Information
    • ServiceNow.com
    • Training
    • Customer Success Center
    • ServiceNow Support Videos
  • Log in

Product documentation

  • Home
How search works:
  • Punctuation and capital letters are ignored
  • Special characters like underscores (_) are removed
  • Known synonyms are applied
  • The most relevant topics (based on weighting and matching to search terms) are listed first in search results
Topics are ranked in search results by how closely they match your search terms
  • A match on the entire phrase you typed
  • A match on part of the phrase you typed
  • A match on ALL of the terms in the phrase you typed
  • A match on ANY of the terms in the phrase you typed

Note: Matches in titles are always highly ranked.

  • Release version
    Table of Contents
    • Now Platform capabilities
Table of Contents
Choose your release version
    Home Orlando Now Platform Capabilities Now Platform capabilities Workflow Workflow administration Workflow movement with update sets

    Workflow movement with update sets

    • Save as PDF Selected topic Topic & subtopics All topics in contents
    • Unsubscribe Log in to subscribe to topics and get notified when content changes.
    • Share this page

    Workflow movement with update sets

    The system tracks workflows in update sets differently than other records because workflow information is stored across multiple tables.

    Changes made to a workflow version are not added to the update set until the workflow is published, at which point the entire workflow is added into the update set. Update sets store workflows as a single Workflow [wf_workflow] record and only retain the latest version with the update type of Workflow.

    For information about update sets, see System update sets.

    Workflow update set migration use case - simple

    Create a new workflow with no dependencies and then migrate the workflow in an update set.

    1. User A selects Update Set A.
    2. User A creates a new workflow called Workflow A.
    3. User A publishes Workflow A.

      A customer update set record is added to Update Set A containing an XML payload, including the published Workflow A and all activity dependencies. The XML payload also contains the workflow input variables associated with the workflow.

    4. User A completes Update Set A and migrates it to the production instance.
    5. Update Set A commits successfully.
    6. Workflow A works as expected.

    Workflow update set migration use case - subflow dependency (success)

    Successfully edit and migrate an existing workflow and its dependent subflow.

    1. User A selects Update Set B.
    2. User A checks out Workflow A.
    3. User A adds a subflow called Workflow B to Workflow A.

      Assume that Workflow B was previously published and migrated to the production instance.

    4. User A publishes Workflow A.

      A customer update set record is added to Update Set B containing an XML payload, including the published Workflow A and all activity dependencies. The XML payload also contains the workflow input variables associated with the workflow.

    5. User A completes Update Set B and migrates it to the production instance.
    6. Update Set B commits successfully.
    7. Workflow A works as expected with Workflow B as a subflow.

    Workflow update set migration use case - subflow dependency (failure)

    Edit and migrate an existing workflow from a test instance to a production instance that fails to run on the production instance because of a missing dependent subflow.

    1. User A selects Update Set C.
    2. User A checks out Workflow A.
    3. User A adds a subflow called Workflow B to Workflow A.

      Assume that Workflow B was previously published, but has not been migrated to the production instance.

    4. User A publishes Workflow A.

      A customer update set record is added to Update Set C containing an XML payload, including the published Workflow A and all activity dependencies. The XML payload also contains the workflow input variables associated with the workflow.

      Notably absent from Update Set C is the subflow called Workflow B. Workflow B was published before User A selected Update Set C.

    5. User A completes Update Set C and migrates it to the production instance.
    6. Update Set C commits with warnings.
    7. Workflow A is invoked on the production instance with the following results:

      Workflow A fails the runtime validation check and is prevented from running on the production system. The system adds to the workflow context a workflow log entry detailing the cause of the failure, notably the absence of a dependent workflow.

      To learn more about the validation checks on workflow dependencies and update sets see ValidateUpdateSetDependencies.

    Workflow update set migration use case - subflow dependency (risk)

    Multiple users migrate a workflow from a test instance to a production instance without proper coordination. This use case can succeed, but only when each user understands the dependencies and properly migrates the dependent parts of the workflow to the new instance.

    This example does not represent an update set failure, although update sets are most often blamed in this use case. Validation increases the visibility of workflow dependencies across multiple update sets and provides designers with better information. In most cases, the warnings do not prevent an action, but only identify risk. The designer is responsible for taking action on advice given in the validation checks.

    1. User A selects Update Set C.
    2. User A checks out Workflow A.
    3. User A adds a subflow called Workflow B that returns a User ID.
      Note: Assume that Workflow B was previously published and migrated to the production instance.
    4. User A uses the return value of Workflow B to generate approvals.
    5. User B selects Update Set D.
    6. User B checks out Workflow B (the subflow in Workflow A).
    7. User B modifies the return value of the workflow by changing it from a User ID to a String Message.
    8. User A publishes Workflow A.
      Note: A dialog box displays warnings associated with Workflow A and encourages User A to validate the workflow before publishing.
    9. User A cancels publishing and validates Workflow A.
    10. User A is warned that Workflow B was modified by a user in a different update set.
    11. User A ignores this warning and publishes Workflow A.
      Note: A customer update set record is added to Update Set C containing an XML payload, including the published Workflow A and all activity dependencies.The XML payload also contains the workflow input variables associated with the workflow.
    12. User A completes Update Set C and migrates it to the production instance.
    13. Workflow A is invoked on the production instance and runs successfully using the older version of Workflow B already on the system.
    14. User B publishes Workflow B.
      Note: User B is not warned of the Update Set C dependency, because the update set is no longer In progress. However, User B is informed via a dialog box that there are warnings associated with the workflow version and is instructed to validate Workflow B. If User B cancels publication and validates the workflow, User B is warned that there are workflows that use Workflow B as a subflow. Knowing the return value was changed, User B should test those workflows as well. See ValidateUpdateSetDependencies to understand the parameters of update set warnings.
    15. User B finally publishes Workflow B.
      Note: A customer update set record is added to Update Set D containing an XML payload, including the published Workflow B and all activity dependencies.
    16. User B completes Update Set D and migrates it to the production instance.
    17. Update Set D commits without warnings.
    18. Workflow A is invoked on the production instance and fails to run successfully, because the return value of Workflow B no longer generates a User ID.

    Tags:

    Feedback
    On this page

    Previous topic

    Next topic

    • Contact Us
    • Careers
    • Terms of Use
    • Privacy Statement
    • Sitemap
    • © ServiceNow. All rights reserved.

    Release version
    Choose your release version

      Workflow movement with update sets

      • Save as PDF Selected topic Topic & subtopics All topics in contents
      • Unsubscribe Log in to subscribe to topics and get notified when content changes.
      • Share this page

      Workflow movement with update sets

      The system tracks workflows in update sets differently than other records because workflow information is stored across multiple tables.

      Changes made to a workflow version are not added to the update set until the workflow is published, at which point the entire workflow is added into the update set. Update sets store workflows as a single Workflow [wf_workflow] record and only retain the latest version with the update type of Workflow.

      For information about update sets, see System update sets.

      Workflow update set migration use case - simple

      Create a new workflow with no dependencies and then migrate the workflow in an update set.

      1. User A selects Update Set A.
      2. User A creates a new workflow called Workflow A.
      3. User A publishes Workflow A.

        A customer update set record is added to Update Set A containing an XML payload, including the published Workflow A and all activity dependencies. The XML payload also contains the workflow input variables associated with the workflow.

      4. User A completes Update Set A and migrates it to the production instance.
      5. Update Set A commits successfully.
      6. Workflow A works as expected.

      Workflow update set migration use case - subflow dependency (success)

      Successfully edit and migrate an existing workflow and its dependent subflow.

      1. User A selects Update Set B.
      2. User A checks out Workflow A.
      3. User A adds a subflow called Workflow B to Workflow A.

        Assume that Workflow B was previously published and migrated to the production instance.

      4. User A publishes Workflow A.

        A customer update set record is added to Update Set B containing an XML payload, including the published Workflow A and all activity dependencies. The XML payload also contains the workflow input variables associated with the workflow.

      5. User A completes Update Set B and migrates it to the production instance.
      6. Update Set B commits successfully.
      7. Workflow A works as expected with Workflow B as a subflow.

      Workflow update set migration use case - subflow dependency (failure)

      Edit and migrate an existing workflow from a test instance to a production instance that fails to run on the production instance because of a missing dependent subflow.

      1. User A selects Update Set C.
      2. User A checks out Workflow A.
      3. User A adds a subflow called Workflow B to Workflow A.

        Assume that Workflow B was previously published, but has not been migrated to the production instance.

      4. User A publishes Workflow A.

        A customer update set record is added to Update Set C containing an XML payload, including the published Workflow A and all activity dependencies. The XML payload also contains the workflow input variables associated with the workflow.

        Notably absent from Update Set C is the subflow called Workflow B. Workflow B was published before User A selected Update Set C.

      5. User A completes Update Set C and migrates it to the production instance.
      6. Update Set C commits with warnings.
      7. Workflow A is invoked on the production instance with the following results:

        Workflow A fails the runtime validation check and is prevented from running on the production system. The system adds to the workflow context a workflow log entry detailing the cause of the failure, notably the absence of a dependent workflow.

        To learn more about the validation checks on workflow dependencies and update sets see ValidateUpdateSetDependencies.

      Workflow update set migration use case - subflow dependency (risk)

      Multiple users migrate a workflow from a test instance to a production instance without proper coordination. This use case can succeed, but only when each user understands the dependencies and properly migrates the dependent parts of the workflow to the new instance.

      This example does not represent an update set failure, although update sets are most often blamed in this use case. Validation increases the visibility of workflow dependencies across multiple update sets and provides designers with better information. In most cases, the warnings do not prevent an action, but only identify risk. The designer is responsible for taking action on advice given in the validation checks.

      1. User A selects Update Set C.
      2. User A checks out Workflow A.
      3. User A adds a subflow called Workflow B that returns a User ID.
        Note: Assume that Workflow B was previously published and migrated to the production instance.
      4. User A uses the return value of Workflow B to generate approvals.
      5. User B selects Update Set D.
      6. User B checks out Workflow B (the subflow in Workflow A).
      7. User B modifies the return value of the workflow by changing it from a User ID to a String Message.
      8. User A publishes Workflow A.
        Note: A dialog box displays warnings associated with Workflow A and encourages User A to validate the workflow before publishing.
      9. User A cancels publishing and validates Workflow A.
      10. User A is warned that Workflow B was modified by a user in a different update set.
      11. User A ignores this warning and publishes Workflow A.
        Note: A customer update set record is added to Update Set C containing an XML payload, including the published Workflow A and all activity dependencies.The XML payload also contains the workflow input variables associated with the workflow.
      12. User A completes Update Set C and migrates it to the production instance.
      13. Workflow A is invoked on the production instance and runs successfully using the older version of Workflow B already on the system.
      14. User B publishes Workflow B.
        Note: User B is not warned of the Update Set C dependency, because the update set is no longer In progress. However, User B is informed via a dialog box that there are warnings associated with the workflow version and is instructed to validate Workflow B. If User B cancels publication and validates the workflow, User B is warned that there are workflows that use Workflow B as a subflow. Knowing the return value was changed, User B should test those workflows as well. See ValidateUpdateSetDependencies to understand the parameters of update set warnings.
      15. User B finally publishes Workflow B.
        Note: A customer update set record is added to Update Set D containing an XML payload, including the published Workflow B and all activity dependencies.
      16. User B completes Update Set D and migrates it to the production instance.
      17. Update Set D commits without warnings.
      18. Workflow A is invoked on the production instance and fails to run successfully, because the return value of Workflow B no longer generates a User ID.

      Tags:

      Feedback

          Share this page

          Got it! Feel free to add a comment
          To share your product suggestions, visit the Idea Portal.
          Please let us know how to improve this content

          Check any that apply

          To share your product suggestions, visit the Idea Portal.
          Confirm

          We were unable to find "Coaching" in Jakarta. Would you like to search instead?

          No Yes
          • Contact Us
          • Careers
          • Terms of Use
          • Privacy Statement
          • Sitemap
          • © ServiceNow. All rights reserved.

          Subscribe Subscribed Unsubscribe Last updated: Tags: January February March April May June July August September October November December No Results Found Versions Search preferences successfully updated My release version successfully updated My release version successfully deleted An error has occurred. Please try again later. You have been unsubscribed from all topics. You are now subscribed to and will receive notifications if any changes are made to this page. You have been unsubscribed from this content Thank you for your feedback. Form temporarily unavailable. Please try again or contact  docfeedback@servicenow.com  to submit your comments. The topic you requested does not exist in the release. You were redirected to a related topic instead. The available release versions for this topic are listed There is no specific version for this documentation. Explore products Click to go to the page. Release notes and upgrades Click to open the dropdown menu. Delete Remove No selected version Reset This field is required You are already subscribed to this topic Attach screenshot The file you uploaded exceeds the allowed file size of 20MB. Please try again with a smaller file. Please complete the reCAPTCHA step to attach a screenshot
          Log in to personalize your search results and subscribe to topics
          No, thanks Login