AIOps

 View Only
  • 1.  TWS/IWS - File Dependency Question

    Posted Tue February 06, 2024 06:20 PM
    Edited by armin pohl Tue February 06, 2024 08:39 PM

    Hello,

       we have a new interface stating soon and we require a file dependencies on two of the jobs.

    the file names are dynamic i.e. 11223344556677.1234567.json and 11223344556677.1234567.ACK.json

    the digits will always be different, but they will always be 14digits.7 digits.json and 14digits.7digits.ACK.json

    if I use a wild card as the file dependency i.e. *.json - it will see both files and sometimes the wrong job runs. can I use %%%%%%%%%%%%%%.%%%%%%%.json ?. i tried that but the dependencies are not being satisified. Maybe I'm not using them correctly.

    I use /sinterfaces/infiles/*.*ACK.json and that satisfies the file dependency on the matching job

    but if I use ..json - it sees both files ACK.json and json which is not good. I need a way to add file dependency on 11223344556677.1234567.json which doesnt see the ther file with similar extension 11223344556677.1234567.ACK.json

    any help would be greatly appreciated,

    EDITING - I also if I use .json or ..json as the dependency - when I submit the stream to the console - the dependencies change to... /%%%%%%%%%%%%%%.%%%%%%%.json - strange ??

    Armin



    ------------------------------
    armin pohl
    ------------------------------



  • 2.  RE: TWS/IWS - File Dependency Question

    Posted Wed February 07, 2024 10:46 AM

    Hello Armin,

    You can use the below regex expressions to match the 2 file patterns.

     For 11223344556677.1234567.json  

    *.*.json

    For 11223344556677.1234567.ACK.json

    *.*.ACK.json

    Hope this helps.

    Best,

    Sunil



    ------------------------------
    Sunil Chauhan
    ------------------------------



  • 3.  RE: TWS/IWS - File Dependency Question

    Posted Wed February 07, 2024 10:54 AM

    thanks Sunil. I think those would still cause issues. 

     For 11223344556677.1234567.json  if I use...

    *.*.json

    that would still satisfy the dependency if the ACK.json file is the only file there and the job would run based on processing the .json file and abend would occur since the program is reading the ACK.json file.

    I think we will ask to put the 2 different files into separate folders so that the ACK.json and json files are not in the same folder.

    thanks

    Armin



    ------------------------------
    armin pohl
    ------------------------------