See also: Writing Registry Plugins and Configuring Registry Identifier Assignment
Identifier Assignment Plugins are Experimental, and the interface is subject to change in a future release.
Identifier Assignment Plugins are not currently instantiated, and will be available globally once installed.
The Plugin must implement an assignment routine in the
FooAssigner model, with the following signature:
public function assign($coId, $context, $recordId, $identifierType, $emailType=null)
Plugins will be called within a database transaction.
assign() should return the new identifier as a string, or throw an Exception on error.
The plugin will be called once to generate a unique identifier. If the identifier returned is already known to Registry, or any other error occurs, the assignment process will fail.