Skip to content

Process Template and its features

Sri Harsha Boda edited this page Sep 15, 2017 · 1 revision

Process Template

Process Template is a feature that helps in automated creation of multiple processes or jobs that share a similar structure (same no.of steps, same workflow structure etc). It also creates properties for the newly created jobs based on the properties defined in properties template.

Refer to the following scenarios to get a thorough understanding of this feature.

Scenario 1:

How to define a new process template?

  1. Go to the process template page in the BDRE UI (md-ui/pages/processtemplate.page).

  2. Add process and steps in the template, the same way you would do in the process page. Refer to the following figure.

adding_a_process_template

  1. Then click on the 'create' button to create a new process of the same structure. The create button will prompt you to enter the name and description for the process to be created as follows. Enter details and click 'create from template'.

create_from_template

  1. Go to the process page to check the newly created process.

new_process

  1. Similarly, you can create as many such processes as you want. I am adding another such process with name 'CLU IN'.

Scenario 2:

How to make changes to all the processes created through a given template?

  1. Go to the process template page and make any changes you need to a given template. (Edit restartability, next_process_id,process_type etc. and save) . In this case I am changing the Next field of 182,183 template ids.

changed_structure_of_template

  1. Click on the 'apply' button for the changes to reflect in the process page for all corresponding processes.

apply_changes

changes_reflected_in_process_2

changes_reflected_in_process

  1. Note that the changes made in name and description of template do not change the actual name and description of the corresponding processes in process table.

Scenario 3:

How to add or remove a step for all the processes of a given template.

  1. Go to the process template page and add or remove the step and click 'apply'. This will change the corresponding processes in the process page. In this case I am adding a step named 'child4 of 182'.

adding_child4

extra_process_reflected

Scenario 4:

How to add properties to a template and reflect the same for the corresponding processes?

  1. Go to the properties template page in the BDRE UI (md-ui/pages/propertiestemplate.page).

  2. Define any number of properties for as many templates defined in the process template as you want. I am adding two properties for the template id 183 as follows.

properties_template

  1. Now to apply these properties to the existing processes in process table, go back to the process template page and click on 'apply'.

This will add the above properties to the corresponding processes.

proeprties_added_to_existing_ones

  1. If you want to create a new process from template and populate the properties,just click on 'create' button. This will automatically add the properties to the newly created process.

new_process_with_props

newly_added_process_with_props

props_added_for_new_process

Scenario 5:

How to add or remove a property for all steps belonging to a given template?

  1. Go to the properties template page and add or remove a property to one or more of the steps. Then click 'apply'. In this step, I am adding a property to 183.

extra_property

apply_changes_after_adding_prop

props_added

Clone this wiki locally