HDP-TIH - Advanced Dependency Condition

Adds advanced conditions for uproc jobs.


ENGLISH DESCRIPTION :
In $U, dependency condition on HDP uproc only offers 2 options : "All required" and "One is enough"

Target environments: Any perl environment

Prerequisites: Any $U that can launch perl script

Implementation: This script is intended to be the code of the uproc



This script, which must be the code of the conditioned uproc, allow to :


- handle one or many HDP uprocs as dependencies conditions

- wait that all HDP uprocs are "COMPLETED" or "ABORTED"

- [OPTIONAL] : specify a minimum percentage of required "COMPLETED" uprocs. The percentage is global (whatever is the number of HDP uprocs)


Functioning of the script :

1 - The script will analyze the T_TARGET variables in order to verify if all uprocs and MUT exist

2 - Check every uproc status

3 - Wait 'N' seconds before doing a new check

4 - As soon as all uprocs will be "COMPLETED" or "ABORTED" (And if the value of the required percentage is different from zero), the script will calculate the percentage of "COMPLETED" uproc and determine its own status ("COMPLETED" or "ABORTED")


Setup :
Paste the content of the text file as the end session' uproc content (CL_INT). The end session uproc should be set as a OK son of the header uproc.


Uproc' variables :

- T_WAIT : waiting time between each check (seconds)

- T_PERCENT : minimum percentage of "COMPLETED" uproc required

- T_TARGET (N going from 0 to N) : couple ;



NOTES :
1 ) At each check run, the script will write into the job log which uproc is not yet "COMPLETED" or "ABORTED".
If you want to remove this feature, you just have to delete / comment line 64.


2 ) Variables T_TARGET must begin with N equal to 0. Figures have to follow itself.

====================================================================================
DESCRIPTION EN FRANCAIS :
Dans $U, la gestion des conditions d'enchainement sur une uproc en TIH n'offre que 2 options : "Toutes nécessaires" et "Une suffisante"

Ce script, placé dans le code de l'uproc qui doit avoir cette condition d'enchainement, permet de :

- conditionner de 1 à N uproc tournant en TIH

- d'attendre que toutes les uprocs en TIH soient au status "COMPLETED" ou "ABORTED"

- [OPTIONNEL] : de spécifier un pourcentage minimun global requis (au cas ou plusieurs uprocs en TIH soient attendues) d'uproc au status "COMPLETED"


Fonctionnement du script :

1 - Le script va analyser les variables contenant les couples à surveiller afin de vérifier que les Uprocs et les MUT existent bien

2 - Controler pour chaque Uproc son status

3 - Attendre 'N' secondes avant de refaire un contrôle

4 - Quand toutes les uprocs seront en "COMPLETED" ou "ABORTED" (et si un pourcentage est spécifié), calculer le pourcentage d'uproc en "COMPLETED" et déterminer son status ("COMPLETED" ou "ABORTED") selon le résultat


Mise en place :
Copier le contenu du fichier dans le code l'uproc de fin de la session et la mettre comme fils normal de l'uproc d'en-tête


Variables d'uproc :

- T_WAIT : temps d'attente entre chaque vérification (en secondes)

- T_PERCENT : pourcentage d'uproc en "COMPLETED" requis

- T_TARGET (N allant de 0 à N) : couple ;4



NOTES :
1 ) le script indique pour chaque contrôle, quelles sont les uprocs qui ne sont pas au status "COMPLETED" ou "ABORTED".
Si vous souhaitez désactiver cette fonction, il suffit de supprimer / commenter la ligne 64 du script.

2 ) Les variables T_TARGET doivent se suivre et commencer à 0. Il ne doit pas y avoir de trou dans la numérotation.

No content available.
No content available.
Please log in using your Broadcom account to download this plugin.
Please log in using your Broadcom account to download this plugin.
Products Workload Automation, Dollar Universe Workload Automation
Versions 5.x, 6.x
Last update 2015-06-09 17:34:27.0
Supported by
Community Source hdp-tih-advanced-dependency-condition

Broadcom does not support, maintain or warrant Solutions, Templates, Actions and any other content published on the Community and is subject to Broadcom Community Terms and Conditions.