WORKLOAD AUTOMATION COMMUNITY
  • Home
  • Blogs
  • Forum
  • Resources
  • Events
    • IWA 9.5 Roadshows
  • About
  • Contact
  • What's new

An easy example of how to submit a Job Stream using Workload Automation Client libraries!

1/24/2018

3 Comments

 
Picture
Many times, our customers ask us how to call the Workload Automation functionality from their external programs.  

Starting from version 9.3 FP2, Workload Automation provides a new set of REST APIs that give you programmatic access to Workload Automation services (we have already discussed this topic in a previous blog post: Driving Workload Scheduler with REST APIs is super simple with Swagger UI!). 

Ok, but wouldn’t it be great to have some chunks of code to make developer’s life easier and ensure they’re using the APIs in the best supported manner? That’s what the Client library does.  

Today I want to show you how to use the Workload Automation Client libraries to submit an existing Job Stream. 

Let’s start!  

  1. First of all, download here the Client libraries for Java for advanced APIs. 
  2. Write a simple java project that followed the steps shown below:  
Picture

Step 1: Connect your Engine 

First, you have to connect your apiClient to your Workload Automation Engine:
Picture

Step 2: Retrieve the Jobstream ID 

Now, just retrieve the JobstreamID of the Jobstream that you want to submit. 

In this example, only the Jobstream name and the workstation are passed, but if you want to include also the Job Stream validFrom, validTo or validInRange, just add them to the JobstreamFilter. 

Picture

Step 3: Create a new object in the plan 

With the JobstreamID just retrieved, you will create a new object in the plan and add all the wanted information. Note that the setInputArrivalTime and the Alias are mandatory!
Picture

Step 4: Submit the new object in the plan 

We have almost finished! Just submit the new object!
Picture
That’s it… 

Oops!...I was forgetting…if you prefer to disable the certificate validation, just write a simple method like this and call it in your project!
Picture
Picture
Very easy, isn’t it??  
If you liked my blog or if you would like to have more example of how to use the Workload Automation Client libraries, just leave a comment here or send an e-mail to Vincenzina Leone vincenzina.leone@hcl.com.  
 
Thanks, and see you next blog! 

Picture
Vincenzina Leone 
Software Engineer at HCL
​
Vincenzina works as a Software Engineer at HCL Products and Platforms in Rome software development laboratory.
She has a degree in Math and she loves seeing a mathematical aspect of everything in daily life!
3 Comments
Mariano
2/4/2018 05:56:12 pm

Very interesting !

Reply
Vincenzina
2/6/2018 04:24:32 am

Thanks Mariano!

Reply
Vincenzina
2/22/2018 11:17:11 am

Hi, for everyone who is interested in learn more about WA REST APIs see the link below: https://youtu.be/7WPaiarZtV0
Thanks!

Reply

Your comment will be posted after it is approved.


Leave a Reply.

    Archives

    May 2022
    April 2022
    March 2022
    February 2022
    January 2022
    December 2021
    October 2021
    September 2021
    August 2021
    July 2021
    June 2021
    May 2021
    April 2021
    March 2021
    February 2021
    January 2021
    December 2020
    November 2020
    October 2020
    September 2020
    August 2020
    July 2020
    June 2020
    May 2020
    April 2020
    March 2020
    January 2020
    December 2019
    November 2019
    October 2019
    August 2019
    July 2019
    June 2019
    May 2019
    April 2019
    March 2019
    February 2019
    January 2019
    December 2018
    November 2018
    October 2018
    September 2018
    August 2018
    July 2018
    June 2018
    May 2018
    April 2018
    March 2018
    February 2018
    January 2018
    December 2017
    November 2017
    October 2017
    September 2017
    August 2017
    July 2017
    June 2017
    May 2017

    Categories

    All
    Analytics
    Azure
    Business Applications
    Cloud
    Data Storage
    DevOps
    Monitoring & Reporting

    RSS Feed

www.hcltechsw.com
About HCL Software 
HCL Software is a division of HCL Technologies (HCL) that operates its primary software business. It develops, markets, sells, and supports over 20 product families in the areas of DevSecOps, Automation, Digital Solutions, Data Management, Marketing and Commerce, and Mainframes. HCL Software has offices and labs around the world to serve thousands of customers. Its mission is to drive ultimate customer success with their IT investments through relentless innovation of its products. For more information, To know more  please visit www.hcltechsw.com.  Copyright © 2019 HCL Technologies Limited
  • Home
  • Blogs
  • Forum
  • Resources
  • Events
    • IWA 9.5 Roadshows
  • About
  • Contact
  • What's new