AutoSys Workload Automation

  • 1.  Webservice Jobs in Autosys

    Posted Feb 28, 2017 10:13 PM

    I am using Autosys 11.3.6 in our environment and trying to use a Webservice job. I am using job_type: WSDOC. How can we pass the output of one job as input to the other job?

    I don't see any attributes which can help achieve this?

     

    Any inputs will be welcome?



  • 2.  Re: Webservice Jobs in Autosys

    Posted Feb 28, 2017 11:18 PM

    The destination_file attribute may be of interest.

    Here is the DocOps link.

     

    Also see the ws_parameter doc, specifically the payload_job parameter.

    There is an example there. The source example job can be found here.

     

    I don't currently have another example, but I will post one here ASAP.

    Or perhaps someone else has an example they can share...



  • 3.  Re: Webservice Jobs in Autosys

    Posted Mar 01, 2017 01:27 PM

    Mark,

     

    You are correct. The only confusion and area where I am stuck is how to pull out the output of the tag using job_criteria attribute. No documentation clearly mentions how it needs to be used.

     

    My output contains the following:

     

            <executeBatchGroupReturn xmlns="urn:siperian.api">
                <message>2Qhfdgkhksh34578475</message>
                <rowidBatchGroupLog>SV.86STP</rowidBatchGroupLog>
            </executeBatchGroupReturn>

     

    How can I extract the value "2Qhfdgkhksh34578475" as input to the other job? The next job considers the complete output instead of just the expected one. I am not clear on how the "criteria_xpath" and "criteria_filter" needs to be used. That according to me should resolve the issue.



  • 4.  Re: Webservice Jobs in Autosys

    Broadcom Employee
    Posted Jun 14, 2017 02:28 PM

    Hi,  The job that will use the output will be important on how you can use the output.  If the next job is another WSDOC job, you can pass your payload as a param in this way:

    ws_parameter: param_name=name, payload_job=jobname

     

    For this to work, you would have extracted the part of the returned XML as you indicated you were going to do.

    Other job types like JMX, JMS and others work in this way as well.

     

    Regards,

    Mike