Registry Notification Command is a command line utility to register a Notification. It is primarily intended to be manually run to perform testing of Notification infrastructure, but can also be used in scripts to register Notifications in a production environment.
Usage
Notification Command is run via cake shell, ie
$ cd $REGISTRY/app $ ./bin/cake notification ...
notification [-qvM] -c <coId> -a <actorIdentifier> -A <action> -c <comment> -m <messageTemplateId> -r <recipientIdentifer> -s <subjectIdentifier> -S <source> -t <typeLabel>
where
- M: If true, the Notification must be resolved (not acknowledged)
- action: The Notification Action Code (typically a four character code)
- actorIdentifier: The Actor Person's Identifier (see Person Mapping, below)
- coId: The CO ID in which to register the Notification
- comment: The Notification Comment
- messageTemplateId: The Message Template used for the content of the Notification
- recipientIdentifier: The Recipient Person's Identifier (see Person Mapping, below)
- source: The Notification source, typically in the form of a URL of the action that generated the Notification
- subjectIdentifier: The Subject Person's Identifier (see Person Mapping, below)
- typeLabel: The type used for Identifier mapping (see Person Mapping, below)
Person Mapping
For all Person Identifiers, the specified parameter is an Identifier associated with the Person of the type specified by typeLabel
.