Optionally, a BPMN process can be executed on the certificate. Identity Manger will first persist the certificate core object. After that, if a processDefinitionId is specified in the distribution rule URL in the Certificate Manager, the specified process will be executed with the persisted certificate. Take care of the following:
- The user the Certificate Manager logs in with must have the permission to execute the process.
- The process should not be interactive.
- It is recommended that the process runs asynchronously, so that Identity Manger can immediately respond to Certificate Manager.
- If the process throws an exception or ends in an Error End Event, the certificate will remain persisted in Identity Manger and Certificate Manager will get an OK response (in order not to retry the distribution). It is the responsibility of the process to make sure the error can somehow be handled.
- A CertificatePublicationException containing the certificateID will be visible in the log if any throwable is thrown in the thread that handled the certificate registration REST call. This will, for example, be the case, if the process does not exist. Remember that as soon as a task runs asynchronously (as recommended), it will run in a separate thread.
|