public class UpdateTemplate
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.logging.Logger |
logger
aLogger
|
| Constructor and Description |
|---|
UpdateTemplate() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isPossible(java.util.UUID templateID,
CheckReport checkReport,
ProcessConstants.TemplateProperty... templateProperties)
Checks if it is valid for the template with the given id to update the
properties given by
Properties. |
static boolean |
isPossible(java.util.UUID templateID,
ProcessConstants.TemplateProperty... templateProperties)
Checks if it is valid for the template with the given id to update
the properties given by
Properties. |
static void |
performOperation(ChangeableTemplate template,
java.lang.String newName,
java.lang.String newInstanceNameTemplate,
QualifiedAgent newSupervisorAgent,
java.util.Set<ProcessModelParameter> newInputParameters,
java.util.Set<ProcessModelParameter> newOutputParameters,
ProcessConstants.TemplateProperty... templateProperties)
Updates the given template using those of the given attributes which are
specified in template properties.
|
static void |
performOperation(ChangeableTemplate template,
java.lang.String newName,
java.lang.String newInstanceNameTemplate,
QualifiedAgent newSupervisorAgent,
java.util.Set<ProcessModelParameter> newInputParameters,
java.util.Set<ProcessModelParameter> newOutputParameters,
UpdateManager updateManager,
ProcessConstants.TemplateProperty... templateProperties)
Updates the given template using those of the given attributes which are
specified in template properties.
|
public static boolean isPossible(java.util.UUID templateID,
ProcessConstants.TemplateProperty... templateProperties)
Properties.
The following attributes / properties may be updated and must therefore be
tested:
templateID - the id of the template where the method is performed ontemplateProperties - the properties which should be changedpublic static boolean isPossible(java.util.UUID templateID,
CheckReport checkReport,
ProcessConstants.TemplateProperty... templateProperties)
Properties. The following attributes /
properties may be updated and must therefore be tested:
templateID - the id of the template where the method is performed oncheckReport - a checkReport object which can be filled with the reason
why the isPossible failed (i.e. in the case the method returns
false), may be nulltemplateProperties - the properties which should be changedpublic static void performOperation(ChangeableTemplate template, java.lang.String newName, java.lang.String newInstanceNameTemplate, QualifiedAgent newSupervisorAgent, java.util.Set<ProcessModelParameter> newInputParameters, java.util.Set<ProcessModelParameter> newOutputParameters, ProcessConstants.TemplateProperty... templateProperties)
template - the template whose properties are updatednewName - the name of the template (maybe null)newInstanceNameTemplate - The pattern for an instance name of this
template.newSupervisorAgent - the supervisor agent (maybe null)newInputParameters - the new input parameters of the template (maybe
null)newOutputParameters - the new output parameters of the template (maybe
null)templateProperties - Possible values of TemplateProperty are described
above.public static void performOperation(ChangeableTemplate template, java.lang.String newName, java.lang.String newInstanceNameTemplate, QualifiedAgent newSupervisorAgent, java.util.Set<ProcessModelParameter> newInputParameters, java.util.Set<ProcessModelParameter> newOutputParameters, UpdateManager updateManager, ProcessConstants.TemplateProperty... templateProperties)
template - The template whose properties are updatednewName - The name of the template (maybe null)newInstanceNameTemplate - The pattern for an instance name of this
template.newSupervisorAgent - The supervisor agent (maybe null)newInputParameters - The new input parameters of the template (maybe
null)newOutputParameters - The new output parameters of the template (maybe
null)updateManager - The update manager which will be informed about
process changes.templateProperties - Possible values of TemplateProperty are described
above.