Spectrum Technology Platform

 View Only
  • 1.  Adding Conditional Flow Control to a Process Flow that calls an External Program on Windows

    Employee
    Posted 04-22-2019 08:44
      |   view attached

    The Run Program activity in a Process Flow that calls an external program can't access the return code provided by that program

    One way to implement this constraint is have the external program write that exit-code to a control file (on the OS) or to a DB control table and then have the Spectrum job read that control file/table in order to chart the path based on that specific code. Please see attachment for more details.



    ------------------------------
    Jeremy Peters
    PITNEY BOWES SOFTWARE, INC
    Troy NY
    ------------------------------


  • 2.  RE: Adding Conditional Flow Control to a Process Flow that calls an External Program on Windows

    Employee
    Posted 04-24-2019 03:26
    Great workaround / enhancement! This can also serve as a log file, I suppose?

    ------------------------------
    Marcus Enger
    Director Partner Management EMEA
    PITNEY BOWES SOFTWARE, INC, Germany
    ------------------------------



  • 3.  RE: Adding Conditional Flow Control to a Process Flow that calls an External Program on Windows

    Employee
    Posted 04-28-2019 06:53

    A Process Flow will recognize a Windows batch file exit code specified as follows: (exit /b 1) where 1 can be replaced with the desired exit code.



    ------------------------------
    Jeremy Peters
    PITNEY BOWES SOFTWARE, INC
    Troy NY
    ------------------------------