public class ProcessManagerTools
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static TemplateReference |
getLatestTemplateVersion(SessionToken session,
java.lang.String processType,
TemplateManager templMgr,
FilterFactory filtFactory)
Tries to retrieve the template of the designated process type having the
highest version number in the template manager.
|
public static TemplateReference getLatestTemplateVersion(SessionToken session, java.lang.String processType, TemplateManager templMgr, FilterFactory filtFactory)
null will be returned.
Important! This method has some serious restrictions:
Due to the non-linear versioning of templates, the result of this method is
ambiguous. It just retrieves the template with the highest version number
which need not be the latest version at all. Additionally, the template
manager need not know all templates of a process type and therefore only a
subset of all templates of the process type may be considered.
Last but not least, the "interface" of a process type may change
between two versions, that is, templates of the same process type may have
different input and output parameters. Therefore the "latest"
template may be incompatible to the calling context.
session - The session with which to retrieve the templates.processType - The name of the process type of which to get the
"latest" template.templMgr - The template manager from which to retrieve the template.filtFactory - The filter factory for creating the filters that apply
to the templates.null will be
returned.