Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ARobinson26 committed Nov 7, 2023
1 parent 7809ac2 commit a00db72
Showing 1 changed file with 74 additions and 0 deletions.
74 changes: 74 additions & 0 deletions docs/standards/low-code-workflow-naming.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
---
layout: standard
order: 1
title: Low code workflow naming
date: 2023-11-01 # this should be the date that the content was most recently amended or formally reviewed
id: SEGAS-00012 # Set unique ID for standard
# use `tags: []` for no tags
# Check https://ho-cto.github.io/engineering-guidance-and-standards/tags/ for existing tags
# Note: tags must use sentence case capitalisation
tags:
- Low code
- Software design
- Azure Logic Apps
- Microsoft Power Automate
- AWS Step Functions
- Oracle Integration Cloud
---

<!-- Standard description -->
Ensuring clean and clear naming in low-code workflow tools helps provide structure and maintainability. This covers a variety of aspects from workflow and action names to scope blocks and error handling. This standard aims to provide generic rules that can be applied across all platforms, however due to the nature of low-code technology and tooling-specific limitations, there may be exceptional circumstances where they cannot be applied.
<!--
# Notes on line breaks
Please see https://x-govuk.github.io/govuk-eleventy-plugin/markdown/#line-breaks for notes on usage of line breaks.
# Notes on using links
Internal links need to follow this format:
[link text to internal page]({{ '/standards/writing-a-standard/' | url }})
Note the use of the `url` filter. This ensures the link is appended to the base URL of the webpage correctly.
External links follow standard markdown formatting:
[link text to external page](https://example.com)
-->

---

## Requirement(s)

<!-- Populate list for each requirement (there can be more than 2)-->

- [Naming conventions MUST be consistent](#requirement-1)
- [Acronyms or uncommon abbreviations MUST be defined in a central or project glossary](#requirement-2)
- [Workflow, action step and scope block names MUST be descriptive and convey the purpose or objective](#requirement-3)
- [Workflow, action step and scope block names MUST begin with a verb to describe the function, followed by the subject of the verb](#requirement-4)
- [Words in a workflow name MUST be separated by a space where possible](#requirement-5)
- [Scope blocks that are used for error handling MUST be prefixed with the word 'Try' or 'Catch'](#requirement-6)

### Naming conventions MUST be consistent

Naming conventions must be applied consistently across a service. Consistency helps ensure maintainability and avoids confusion where multiple conventions are used in the same environment.

### Acronyms or uncommon abbreviations MUST be defined in a central or project glossary

Acronyms or abbreviations should only be used where it's not feasible or practical to use the full expansion. They should be defined in a either a central or project glossary accessible to all engineers on the service. Names with unknown acronyms or abbreviations can be meaningless and cause confusion for new engineers working on the service.

### Workflow, action step and scope block names MUST be descriptive and convey the purpose or objective

Naming workflows according to their purpose or objective allows engineers to understand the functionality of each workflow at a high level, without having to study the individual steps contained within it. The more functionality a workflow contains, the higher level the name will have to be.

### Workflow, action step and scope block names MUST begin with a verb to describe the function, followed by the subject of the verb

The naming of workflows, action steps and scope blocks to begin with a verb, followed by the subject of the verb, ensures clarity on what the component is doing. For example, 'Get case record'; 'Set variable to true'. This makes it easier to understand the purpose without looking at specific low-level logic.

### Words in a workflow name MUST be separated by a space where possible

Separating words using spaces makes workflow names more readable. In instances where spaces are not permitted on a platform, dashes or underscores can be used as an alternative.

### Scope blocks that are used for error handling MUST be prefixed with the word 'Try' or 'Catch'

Where a scope block is error handled, it should be prefixed with the word 'Try'. Where a scope block provides error handling, it should be prefixed with the word 'Catch'. This allows engineers to see easily, where error handling is applied within a workflow. Other naming standards should still be applied as normal.

---

0 comments on commit a00db72

Please sign in to comment.