Products | Versions |
---|---|
TIBCO DataExchange | - |
Not Applicable | - |
Resolution:
Please find the attached zip file, DeployThruCommandLineOrScript.zip, it contains SimpeTestCase.dt1, and task definition file, SimpleTestCase.xml,
To deploy a task using cmdlineconsole.cmd
1. First you need to create a task definistion xml file. This can be done by following link "Task->Generate Task File" in DX designer.
2. Once you have task definition xml file, you can use the command "t deploy <task_definition_file_name>" to deploy a file. Please see the example run I did on my machine.
=====================
admin@MALLIK-DT>t deploy F:\Experiments\DX\SimpleTestCase\SimpleTestCase.xml
admin@MALLIK-DT>
=====================
Alternatively you may also write your own python script to deploy/manage tasks. Please see a sample python script attached to this SR, DeployAndRunSimpleTask.py. Below is the output of example run of that sample python script on my machine.
===================
admin@MALLIK-DT>scr F:\Experiments\DX\SimpleTestCase\DeployAndRunSimpleTask.py
Task SimpleTestCase started succesfully
===================