TQL Coding Style and Guidelines
Coding Style
Code Templates
Code Formatting
Naming Consideration
Documentation and Comments
Packaging and Deployment
Enforcement
Macro calls
- Use fully qualified Macro Names when calling them
- Macro Arguments as modifiers
Macro Definition
# Macro(name: "QueryCreate"): Argument: StatusCheck: Failure ContinueCheck: false Result: Query: Create: Include: $Macro.Argument Scope: "Atomiton.Common.UpdateOp": Status: $Macro.Argument.StatusCheck Continue: $Macro.Argument.ContinueCheck
Macro Calling
# Atomiton.DB.QueryCreate(StatusCheck: "[:#t#[:MX-RT:][:ResMV:].NewProject.Status:]", ContinueCheck: "[:/'[:#t#[:MX-RT:][:ResMV:].NewProject.Status:]' = 'Success':]", as: "NewProject:$Name", using: "Atomiton.EngineManager.Blocks"): Project: Name: $Macro.Argument.Name Include: $Macro.Argument