openmainframeproject / zorow

z/OS Open Repository of Workflows (zorow), is an open source community dedicated to contributing and collaborating on z/OSMF workflows. Hosted by Open Mainframe Project
https://www.openmainframeproject.org/projects/zorow
Apache License 2.0
39 stars 24 forks source link

Workflow variables should not include command keywords #28

Open jlczuk opened 4 years ago

jlczuk commented 4 years ago

@ehrocha

I was inspecting this workflow: https://github.com/openmainframeproject/zorow/blob/master/IBM-GTS-Workflows/PA-zOSMF-Workflows-ZFS/IBM-MF-AUTO-ZFS-DEFINE.xml

I noticed that workflow variables are prompting users to enter utility keywords along with the actual variable content needed. For example:

`

If coded, the syntax for this parameter is DATACLAS(DC_NAME) If coded, the syntax for this parameter is DATACLAS(DC_NAME) SMS ` This variable input forces the user to have to know the utility keyword DATACLAS in order to enter the actual information the workflow needs, which is the NAME of the data class to use. Why wouldn't you just prompt for the VALUE for DATACLAS and substitute that into the workflow like this? `#if($zfs-sms-dc != "") DATACLAS($zfs-sms-dc) - #end` I suspect this is being done in nearly all the GTS workflows.
ehrocha commented 4 years ago

@jlczuk Thanks for noticing, yes, I started to do use velocity for our workflows when I realized conditional code was possible. I will get it fixed and a new version uploaded.

jlczuk commented 4 years ago

Great! Thanks Eduardo. Would you like me to identify the other workflow definitions that are doing this same thing? So far, I only looked at the ZFS Define workflow definition.

ehrocha commented 4 years ago

@jlczuk I would be thankful, I do think however, this is the only one and honestly , looking at it now I don't quite understand why I opted to do it like this.

jlczuk commented 4 years ago

I'll look through them anyway just to be sure. It shouldn't take too long.

jlczuk commented 4 years ago

The USS category of workflows does not have a README.md

jlczuk commented 4 years ago

That's what I found.

ehrocha commented 4 years ago

@jlczuk Thank you... I will fix them all.

jlczuk commented 4 years ago

@erocha Feel free to close this if you're done.