Trailing whitespace while returning or printing a value using scripts in workflow

Last post 12-26-2019, 4:15 PM by bumblebee. 2 replies.
Sort Posts: Previous Next
  • Trailing whitespace while returning or printing a value using scripts in workflow
    Posted: 12-09-2019, 7:11 AM

    Trailing whitespace while returning or printing a value using scripts in workflow

    How can get rid of this, even if i use a trim function, a whitespace still gets added :( its making it difficult to proceed to next step due to this.

     

    TIA

  • Re: Trailing whitespace while returning or printing a value using scripts in workflow
    Posted: 12-26-2019, 3:31 PM

    try this but substitute the values from your activityhighlighted in yellow as your will not be ExecuteScript_4 and you may not want to return 1 so adjust that as needed.

     

    xpath:{/workflow/ExecuteScript_4/commandOutput}.trim().equals("1")

     

    hope this helps


    Gary Seibak
    Technical Account Manager - Commvault
  • Re: Trailing whitespace while returning or printing a value using scripts in workflow
    Posted: 12-26-2019, 4:15 PM

    yes that works :) 

    support told we can also use java inline tags , looks like it always add a new line in the ExecuteScript activity.

    java:{ return xpath:{/workflow/ExecuteScript_4/commandOutput}.trim() }:java

    thank you @StorageGuy007

     

     

    .

    .

    .

    Thanks♪(・ω・)ノ

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.
Close
Copyright © 2020 Commvault | All Rights Reserved. | Legal | Privacy Policy