T4S4  18.1 C7177 A20283
Teamcenter Gateway for SAP S/4HANA API Reference
T4X::BATCHJOB::DEPENDENCIES Namespace Reference

Functions

 checkBatchJobDependencies BatchJobId BreakTime args
 Checks the batch job id for dependencies from other batch jobs. More...
 
 getDependencyStatus ExecuteFunction ProxyHandle JobId DependencyBreak args
 This function check the state of the depend on batch jobs and does the error handling. More...
 
 setBatchJobDependencies BatchJobId args
 Sets the dependencies for a batch job. More...
 

Function Documentation

◆ checkBatchJobDependencies()

T4X::BATCHJOB::DEPENDENCIES::checkBatchJobDependencies   BatchJobId BreakTime args  

Checks the batch job id for dependencies from other batch jobs.

Parameters
BatchJobIdunique ID for the batch job
BreakTimetime in milliseconds for the break between 1st and 2nd check
Returns
Decision - OK, WAIT, ERROR

References API::Core::Batch::getDependencyStatus(), API::Core::Batch::isDependencySatisfied(), and tpwrite().

Referenced by getDependencyStatus().

◆ getDependencyStatus()

T4X::BATCHJOB::DEPENDENCIES::getDependencyStatus   ExecuteFunction ProxyHandle JobId DependencyBreak args  

This function check the state of the depend on batch jobs and does the error handling.

Parameters
ExecuteFunction- name of the export function created with the proxy call CreateExportCodeProxy/CreateExportServicesCodeProxy/CreateExportMetaCodeProxy
ProxyHandle
JobId- unique batch job id
DependencyBreak- time in milliseconds between the 1st and 2nd dependency check
Returns
list of the dependency decision, flag for skipping the retry state and ProxyHandle

References checkBatchJobDependencies(), and tpwrite().

◆ setBatchJobDependencies()

T4X::BATCHJOB::DEPENDENCIES::setBatchJobDependencies   BatchJobId args  

Sets the dependencies for a batch job.

Parameters
BatchJobIdunique ID for the batch job
args- DependingOnBatchJobId1 ... DependingOnBatchJobIdx
Returns
list of OK and batch job id or ERROR and error message

References API::Core::Batch::setDependency(), API::Core::Batch::setJobAttribute(), and tpwrite().

Referenced by T4X::BATCHJOB::EXPORT::createBatchjob(), and T4X::BATCHJOB::IMPORT::createBatchjob().