@Component public class JobDefinitionHelper extends Object
| Constructor and Description |
|---|
JobDefinitionHelper() |
| Modifier and Type | Method and Description |
|---|---|
String |
buildActivitiIdString(String namespaceCd,
String jobName)
Returns Activiti Id constructed according to the template defined.
|
String |
getActivitiJobDefinitionTemplate()
Gets the Activiti job definition template.
|
JobDefinitionAlternateKeyDto |
getJobDefinitionKey(String processDefinitionKey)
Gets a job definition key using namespace and name of the the job definition extracted from the specified process definition key using the Regex
pattern.
|
JobDefinitionAlternateKeyDto |
getJobDefinitionKey(String processDefinitionKey,
Pattern regexPattern)
Gets a job definition key using namespace and name of the the job definition extracted from the specified process definition key and the Regex pattern.
|
String |
getJobNameToken()
Gets the job name token.
|
Pattern |
getNamespaceAndJobNameRegexPattern()
Gets the Regex pattern to match the namespace and job name from a process definition key.
|
String |
getNamespaceToken()
Gets the namespace token.
|
void |
maskPassword(Parameter parameter)
Masks the value of the given parameter if the parameter is a password.
|
public String buildActivitiIdString(String namespaceCd, String jobName)
namespaceCd - the namespace code valuejobName - the job name valuepublic String getActivitiJobDefinitionTemplate()
public String getJobNameToken()
public Pattern getNamespaceAndJobNameRegexPattern()
public JobDefinitionAlternateKeyDto getJobDefinitionKey(String processDefinitionKey)
processDefinitionKey - the process definition keypublic JobDefinitionAlternateKeyDto getJobDefinitionKey(String processDefinitionKey, Pattern regexPattern)
processDefinitionKey - the process definition keyregexPattern - the Regex patternpublic String getNamespaceToken()
Copyright © 2021. All rights reserved.