Print Policy

You can view the definition of a policy using the Print Policy command. The printed results includes all state details for the policy. For more information, see Print Item.

The print policy command accepts certain selectables. The following command uses the Boolean selectable state.published to report whether or not the published flag is set for the policy in support of major/minor revisioning:

print policy NAME select state.published;

For more information, see MQL Concepts: Published StatesPublished States.

The following command uses the Boolean selectables majorsequence, minorsequence, and delimiter to report the majorsequence pattern, the minorsequence pattern, and the delimiter, respectively.

print policy NAME select majorsequence minorsequence delimiter;

The following command reports whether a minor revision can be created on an object in a particular state:

print policy NAME select state.minorrevisionable;

You can use sub-selectables to print information about referenced rules:

print policy NAME select state[STATENAME].user[USERNAME].| rule | ruleuser | rulekey |;
  • rule prints the name of the rule defined for that user for that state
  • ruleuser prints the name of the user defined in the rule
  • rulekey prints the name of the key defined in the rule