The suggested naming convention in the lesson Tips on Developing an application for flow action states that:
"Flow Actions - Use a verb and noun convention for flow actions, for example, Approve Correspondence. A flow action can reference other records. When associated with certain activities, data transforms and validation records, prefix the flow action name with:
Pre — if used with a pre-activity or data transform; for example, PreApproveCorrespondence
Post — if used with a post-activity or data transform; for example, PostApproveCorrespondence
Val — if used with a validate record; for example, ValApproveCorrespondence"
I don't think this convention is workable, because a flow action can have pre-action, post-action, and/or validation. So what do you call a flow action that have all of them? PrePostValApproveCorrespondence? That's horribly clumsy. Also, the pre-action, post-action and validation can be added or removed after the flow action is created and it is not that easy to change the name of a rule once it is created. A convention like this won't work.
The prefix is per rule per use within the Flow Action definition
You do not combine multiple prefixes when creating a rule name in the same way that it is not possible to be both pre and post at the same time.
You can have both a PreApproveCorrespondence and a PostApproveCorrespondence Data Transform and Activity for the same Flow Action since these are different rule types.
Validation is performed by a Rule-Ob-Validate rule - again a different rule type.
The reason why you should follow this naming convention is to simplify maintenance.
When seeing the rule name you can easily recognize how and where it is used.
Plus the names of the Pre and Post rules never need to be changed in the future, hence the Flow Action need not be checked out in the future in case the specific-purpose-named pre and post rules called from the Flow Action no longer encompass everything that needs to be performed pre and post.
It is fine for the Pre and Post rules to call other rules.
Posted: 8 years ago
Posted: 17 Mar 2015 19:07 EDT
Tony Tung (tungt)
Lead System Architect
So, the Pre and Post and Val prefixes apply to the Data Transform, Activity and Validation rule, not to the flow action, right? please correct the text of the lessons because at the moment, it says, "A flow action can reference other records. When associated with certain activities, data transforms and validation records, prefix the flow action name with:...." What it should read is, "prefix the other records name with....."
Posted: 8 years ago
Posted: 17 Mar 2015 20:07 EDT
Lee Pederson (pedel)
Engagement Strategy Content Expert & Principal Instructor - LSA