Workflow end process

Last post 01-09-2020, 9:39 AM by cwsunderland. 1 replies.
Sort Posts: Previous Next
  • Workflow end process
    Posted: 01-09-2020, 7:55 AM

    Why does CommVault put a workflow in a pending state with exitCode==3  instead of ending the workflow with an error? I'm running a workflow that does a Windows client checkready with an errorcode of (xpath:{/workflow/CheckReady_1/exitCode}==0) for a success. However, when the client fails with an exitCode==3 the workflow goes pending. How can I get the workflow to exit with the error?


    Charles Lavender
  • Re: Workflow end process
    Posted: 01-09-2020, 9:39 AM

    By default any activity thats fails puts the workflow into a pending state to allow an admin to see what went wrong the workflow.

    However, you can manually control what happens when an activity fails by setting the following items inside the activity's General tab

    Continue after max restarts = true
    Max restarts = 0

    After this you can check if the activity fails, either by checking an exitCode, like your doing, or there is a check on the outbound transition "Execute if previous activity status is" to determine if the workflow should take a success path or failed path.


The content of the forums, threads and posts reflects the thoughts and opinions of each author, and does not represent the thoughts, opinions, plans or strategies of Commvault Systems, Inc. ("Commvault") and Commvault undertakes no obligation to update, correct or modify any statements made in this forum. Any and all third party links, statements, comments, or feedback posted to, or otherwise provided by this forum, thread or post are not affiliated with, nor endorsed by, Commvault.
Commvault, Commvault and logo, the “CV” logo, Commvault Systems, Solving Forward, SIM, Singular Information Management, Simpana, Commvault Galaxy, Unified Data Management, QiNetix, Quick Recovery, QR, CommNet, GridStor, Vault Tracker, InnerVault, QuickSnap, QSnap, Recovery Director, CommServe, CommCell, SnapProtect, ROMS, and CommValue, are trademarks or registered trademarks of Commvault Systems, Inc. All other third party brands, products, service names, trademarks, or registered service marks are the property of and used to identify the products or services of their respective owners. All specifications are subject to change without notice.
Copyright © 2020 Commvault | All Rights Reserved. | Legal | Privacy Policy