NetSuite FastTrack Toolkit (NFT) - v8.0.1
    Preparing search index...

    Function rescheduleIfNeeded

    • Reschedules the current script using the same deployment id if we're out of governance

      Parameters

      • governancePredicate: () => boolean

        governance checker - if it returns false then script will reschedule. typically this would be your invocation of governanceRemains()

      • Optionalparams: object

        optional script parameters to provide to the newly scheduled script

      Returns () => boolean

      a function that returns the same boolean that the governancePredicate() does ( so it can be invoked by takeWhile() as well)

      results.takeWhile( rescheduleIfNeeded(governanceRemains()) ).filter(...).map(...)