Class WorklistModelTools
java.lang.Object
de.aristaflow.adept2.model.worklistmodel.WorklistModelTools
This class provides various tool methods for the worklist model.
- Author:
- Ulrich Kreher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Map<String,PluginData> mergeTlpiLocalisation(Instance instance) Merges the localisation from the designated instance (and its template) for usage in a worklist item representing the designated top-level instance.static Map<String,PluginData> renameL10nKeys(ExecutableBusinessProcessInstance ebpInstance) Renames the localisation keys from the designated EBP instance to be used for aWorklistItem.
-
Constructor Details
-
WorklistModelTools
public WorklistModelTools()
-
-
Method Details
-
renameL10nKeys
Renames the localisation keys from the designated EBP instance to be used for aWorklistItem. This creates a new map to be used as plugin data for a worklist item. Renaming is required since attributes with similar semantic have different names in EBP instances and worklist items.- Parameters:
ebpInstance- The EBP instance from which to get the localisation.- Returns:
- A map containing the localisation of the designated EBP instance transformed to the appropriate attribute names for a worklist item.
-
mergeTlpiLocalisation
Merges the localisation from the designated instance (and its template) for usage in a worklist item representing the designated top-level instance. This takes over the localisation for attributes from instances and templates to attributes of worklist items with similar semantic. This also includes a renaming of the attributes where appropriate.- Parameters:
instance- The instance (and template) from which to get the localisation.- Returns:
- A map containing the localisation of the designated instance (and its template) transformed to the appropriate attribute names for a worklist item representing the designated top-level instance.
-