mazeem-arbisoft
New Contributor III

Hi @NancyX ,

In addition to @Ashwin_DSA 's explanation, if you need to do the same from Declarative Automation Bundles (DABs formerly) workflow YAML markup, here are a couple examples from one of my jobs.

Run ID:

- name: job_run_id
      default: "{{job.run_id}}"

Referring your own custom job params in task params for example, here is an example of spark task referring to the custom params defined under the workflow job:

tasks:
  - task_key: my_task
    spark_python_task:
      python_file: ../src/my_python_file.py
      parameters:
        - "--is-historical-run"
        - "{{job.parameters.is_historical_run}}"

 

Best,
Muhammad Azeem | Data Engineer @ Arbisoft
Software Engineer turned Data Engineer