Automic Workload Automation

 View Only
  • 1.  EXTRACT condition

    Posted Jul 31, 2021 06:52 AM
    I have flow that gets file abd.json from the server .
    The extract condition Should read the file to check for {} or {"withdata,numberandspecialcharacters in it"}.
    If the file has only {} then finish the flow ,if file has data then send email to user .


    I tried the extract condition with different regex and offset combos ,but every time the extract condition comes with search not found comment.
    File will have just 1 line. 

    Looking for suggestions. 

    p.s- new to uc4


  • 2.  RE: EXTRACT condition

    Posted Aug 02, 2021 08:30 AM
    You could use PREP_PROCESS_FILE and search for {}. https://docs.automic.com/documentation/webhelp/english/AWA/11.2/AE/11.2/All%20Guides/Content/ucaafq.htm

    If you get any rows returned it's a dataless file. You can the take the appropriate action using ACTIVATE_UC_OBJECT https://docs.automic.com/documentation/webhelp/english/AWA/11.2/AE/11.2/All%20Guides/Content/ucaafh.htm.

    ------------------------------
    Mick Moses
    Software Configuration Analyst
    Lowell Financial Services
    UK
    ------------------------------



  • 3.  RE: EXTRACT condition

    Posted Aug 02, 2021 11:57 AM
    Hi 

    Is there a way to achieve something as in the link.
    https://techdocs.broadcom.com/us/en/ca-enterprise-software/intelligent-automation/applications-manager/9-3/Development_Guide/Working_with_Conditions/Using_Conditions_to_Accomplish_Common_Tasks/Extracting_Text_from_Files.html

    I am not sure where i get to do the prep_process_file.


  • 4.  RE: EXTRACT condition

    Posted Aug 02, 2021 12:03 PM
    That's Applications Manager.

    Are you sure you're on the right forum?

    This is the Automic forum.

    ------------------------------
    Mick Moses
    Software Configuration Analyst
    Lowell Financial Services
    UK
    ------------------------------



  • 5.  RE: EXTRACT condition

    Posted Aug 02, 2021 01:52 PM
    Thank you ! 

    I am looking for solution in applications manager.