Interface WorkflowUtility
public interface WorkflowUtility
A bean to provide general utility functions. The bean will be accessible by using 'utility' in your workflow
 expressions.
- 
Method Summary
Modifier and TypeMethodDescriptiongetCronExpressionNextRunDate(String unixCronExpression, Date lastRunDate) Retrieves next run date based on a cron expression and the last run date.Remove all the HTML formatting from the given input string, unescaping it before.toCsv(Collection<?> stringList) Creates a csv of the given @{link Collection}.toIdCsv(Collection<? extends com.collibra.dgc.core.api.model.Resource> resources) Converts aCollectionofResources to a csv resource ids.Creates a list of the given csv string.toIdList(Collection<? extends com.collibra.dgc.core.api.model.Resource> resources) Converts aCollectionof resources to a list of resource ids.Creates a list of the given csv string. 
- 
Method Details
- 
toList
Creates a list of the given csv string.- Parameters:
 csvString- The string to convert to a list- Returns:
 - The list of the csv string
 
 - 
toIdList
Creates a list of the given csv string.- Parameters:
 csvString- The string to convert to a list- Returns:
 - The UUID list of the csv string
 
 - 
toIdList
Converts aCollectionof resources to a list of resource ids.- Parameters:
 resources- The resources to convert- Returns:
 - The list of resource ids
 
 - 
toCsv
Creates a csv of the given @{link Collection}.- Parameters:
 stringList- The collection to convert to a csv- Returns:
 - The converted csv
 
 - 
toIdCsv
Converts aCollectionofResources to a csv resource ids.- Parameters:
 resources- TheCollectionof resources to convert- Returns:
 - A csv of resource ids
 
 - 
stripHtml
Remove all the HTML formatting from the given input string, unescaping it before. First it will replace possible linebreaks with a space.- Parameters:
 stringToStrip- the string that needs to be stripped of html- Returns:
 - the string stripped from the html.
 
 - 
getCronExpressionNextRunDate
Retrieves next run date based on a cron expression and the last run date.- Parameters:
 unixCronExpression- stringlastRunDate- date- Returns:
 - the date of the next run
 
 
 -