Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

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:]</Name>
          <Include>$Macro.Argument</Include>
        </Project>
</Atomiton.DB.QueryCreate>




  • No labels