When an identifier is specified, the input will be transformed replacing the identifiers with the values of the selected process definition provided.
processNamePipe.transform('Example - %{processDefinition} - %{datetime}', new ProcessDefinitionRepresentation({ name: 'upload-passport'}));
Name | Type | Default value | Description |
---|---|---|---|
processNameFormat | string | undefined | The process name format including the preferred identifiers to be used |
selectedProcessDefinition | ProcessDefinitionRepresentation | undefined | (optional) The selected process definition |
The pipe offers a convenient way to format a process name using a process name format template.
The supported identifiers that can be used in the process name format are the following:
When the %{processDefinition} identifier is used, the selected process definition provided will be added and positioned in the same place as the identifier.
When the %{datetime} identifier is used, the current datetime will be added and positioned in the same place as the identifier.
Important Notes:
processNamePipe.transform('Example - %{processDefinition} - %{datetime}', new ProcessDefinitionRepresentation({ name: 'upload-passport'})); //Returns 'Example - upload passport - June 02, 2020, 12:00:00 AM'
© 2023 Alfresco Software, Inc. All Rights Reserved.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.