Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • coId: The CO to assign the identifier within.
  • context: The context for assignment, an IdentifierAssignmentContextEnum.
  • recordId: The record ID (of the type indicated by the context) to assign an identifier for.
  • identifierType: The identifier type to assign.
  • emailType: If not null, the email type to assign.

(info) Plugins will be called within a database transaction.

Return Values

assign() should return the new identifier as a string, or throw an Exception on error.

(info) 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.