OpenXPKI::Server::Workflow::Activity::Tools::RelateWorkflow;
Create a metadata item that links a workflow to a certificate
identifier so it shows up as "related workflow". The default
behaviour is to link the current workflow to the cert_identifier
stored in the context using the workflow name as attribute name.
All parameters can be overriden explicitly by an activity
parameter.
- cert_identifier
- The identifier of the certificate to relate, overwrites the value found in
the context parameter with key cert_identifier. If no cert_identifier is
found neither in the parameters nor in the context the class throws an
error.
- tag
- Optional, the internal tag used to create the relation tag, must not
contain any non-word characters ([a-zA-Z0-9_]).
- workflow_id
- The id of the workflow to link. If the id does not exists or is not in the
current realm the class throws an error. If the parameter is set but empty
(or 0), the activity silently does nothing.