How do you run a Javelin Work flow from batch File?

book

Article ID: 195168

calendar_today

Updated On:

Products

CA Test Data Manager (Data Finder / Grid Tools) CA Testing Tools

Issue/Introduction

I have created a Javelin workflow to pull data from a database and put it in excel.
It works fine from the Javelin GUI.
How do I run this from a batch file?

 

Environment

TDM 4.8.X
Javelin 4.8.X

 

Resolution

 If you want to run the flow in batch mode, follow below steps

*)   Export variables to CSV file From the Javelin GUI.

*)   Create a xml file (say export_data.xml) with below content:

      <?xml version="1.0" encoding="UTF-8"?>
<GTJavelinJob>
    <FlowPath>WORK_FLOW_PATH</FlowPath>
    <VariableFilePath>VARIABLE_FILE_PATH</VariableFilePath>
    <LogFile>ANY_LOG_FILE_LOCATION</LogFile>
    <outdir>OUTPUT_DIRECTORY</outdir>
</GTJavelinJob>

sample content is:

<?xml version="1.0" encoding="UTF-8"?>
<GTJavelinJob>
    <FlowPath>C:\Users\name\myflow.vwf</FlowPath>
    <VariableFilePath>C:\Users\name\myvariables.csv</VariableFilePath>
    <LogFile>C:\Users\name\mylogfile.log</LogFile>
    <outdir>C:\Users\name\mydirectory</outdir>
</GTJavelinJob>

 

*)   Cteate a batch file (export_data.bat) and add below line:

    "C:\Program Files (x86)\Grid-Tools\Javelin\JavelinExecutor.exe" file="C:\Users\myname\Documents\export_data.xml"

 

   You can run the batch file which will run the workflow and generate a file in outdir location