webMethods, OneData, and Terracotta  10.2 | Managing Master Data with webMethods OneData | Developing for webMethods OneData | API Functions and Web Services in OneData | Generic Job Functions | executeSynchronousJob
 
executeSynchronousJob
This web service does the synchronous execution of a defined job. The execution is synchronous because the service waits for the job to complete before it obtains the job output. Function returns job output as an XML file that contains the log of the job that executed. The script files are sent as attachments. The type of job is given as an input parameter to this web service.
Input Parameters
Repository
Required. Repository name.

User Id
Password
Required. User name/ password.
Schema Id
Required. ID of the required schema. Set to:
1 for Work Area
2 for Release Area
Project Id
Required. ID of the required project.
Job Name
Required. Name of the job to be executed.
Job Type
Required. Type of job to be executed.
Incremental From Date

Incremental To Date
Optional. From/to dates.
Note: Generic job functions support Global Reports Job only that is, Job Type=43.
Output Parameters
None.
Sample Input
RepositoryId = DEV
UserId = admin
Password = 73ACD9A5972130B75066C82595A1FAE3
SchemaId = 1
ProjectId = 1
JobName = TestSyncDeployJob
JobType = 43
Sample Output
<?xml version="1.0" encoding="UTF-8" ?>
H-H <JOB_OUTPUT>
H-H <JOB>
<REPOSITORY>DEV</REPOSITORY>
<ONEDATA_VERSION>5.7rc1</ONEDATA_VERSION>
<JOB_RUN_IDENTIFIER>426156</JOB_RUN_IDENTIFIER>
<ID>95951</ID>
<NAME>Brand Report-Grouping</NAME>
<EXECUTIONDATE>1970-01-01 05:30:00.0</EXECUTIONDATE>
<DURATION>5</DURATION>
<RESULT>12 rows were retrieved for the report.</RESULT>
<RESULT_MESSAGE>The job executed successfully and the report has been
emailed to the following address(es): adminj@abc.com</RESULT_MESSAGE>
</JOB>
</JOB_OUTPUT>

Copyright © 2011-2018 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release