jcs_chain.job_add_call

on-site-related topic PL/SQL API jcs_chain.job_add_call

Summary

  • procedure job_add_call(job_id in number, step_name in varchar2, obj_name in varchar2, condition in varchar2) (Condition parameter unsupported. IMPORTANT!!! The call added to the Step is not a real JobChainCall! E.g. job.isActualJobChainCall will return false. )
  • function job_add_call(job_id in number, step_name in varchar2, obj_name in varchar2, condition in varchar2) return number (Condition parameter unsupported. IMPORTANT!!! The call added to the Step is not a real JobChainCall! E.g. job.isActualJobChainCall will return false. )

Add a call to a Step of a Chain that has already been submitted.

Prerequisites:

  • Job status of the Step is CHAINED or pre-QUEUED or FINAL
  • The script for this job is a "chain" script
  • The user has set up a proper context for submitting the new script

Examples

Copy
Using jcs_chain.job_add_call
       jcs.clear_parameters(<script_name>);
       jcs.parameter(<script_name>, <parameter>, <value>);
       ...
       jcs_chain.job_add_call(<job_id>, <step_name>, <script_name>);

Using jcs_chain.job_add_call