mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Update wrong methods (#6882)
* Update wrong methods * tslint fix * change back to StringUtil
This commit is contained in:
@@ -107,18 +107,20 @@ export class StringUtil {
|
||||
return fileNames;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generates a random name for a process
|
||||
/** Generates a random name for a process
|
||||
*
|
||||
* @param length {int} If this parameter is not provided the length is set to 5 by default.
|
||||
*/
|
||||
static generateProcessName(): string {
|
||||
return 'process_' + StringUtil.generateRandomString(5);
|
||||
static generateProcessName(length: number = 5): string {
|
||||
return 'process_' + StringUtil.generateRandomString(length);
|
||||
}
|
||||
|
||||
/**
|
||||
* Generates a random name for a task
|
||||
/** Generates a random name for a process
|
||||
*
|
||||
* @param length {int} If this parameter is not provided the length is set to 5 by default.
|
||||
*/
|
||||
static generateUserTaskName(): string {
|
||||
return 'userTask_' + StringUtil.generateRandomString(5);
|
||||
static generateUserTaskName(length: number = 5): string {
|
||||
return 'userTask_' + StringUtil.generateRandomString(length);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user