Skip to content

Use GLB and MIG prefixed Global Variables

Tom Howard edited this page Jul 13, 2014 · 3 revisions
Maintained By The Sydney BW Integrators Group
Proposed By Matt Milligan
Applies To BW 5
Applies To BW 6 ?

Overview

  1. Prefix global variables with GLB_ if their values does not vary between environments.
  2. Prefix global variables with MIG_ if their values do vary between environments.

Rationale

  • The GLB_ prefix creates a clear indication that the global variable does not need to be modified when deploying to a environment.
    • The MIG_ prefix creates a clear indication that the global variable does need to be modified when deploying to a environment.

Alternatives Considered

Use GLB and MIG prefixed Global Variables

TODO

Positives:

  • TODO

Negatives:

  • Doesn't work with all text (e.g. text containing :)

Use XPATH Strings

Positives:

  • Works with all text

Negatives:

  • Not immediately clear if the mapped value is constant or a complex XPATH expression
  • Slower to evaluate (the XPATH expression parser must be invoked)

TODO:

  • Add list of unsupported characters.
  • Add BW 5 screenshot showing XSLT constant.
  • Add BW 5 screenshot showing XPATH string.
  • Add steps (including screenshots or video) showing how to create XSLT constants in BW 5 mappers.
  • Check if this standard makes sense to apply to BW 6
Clone this wiki locally