public class UpdateInstance
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.logging.Logger |
logger
aLogger
|
| Constructor and Description |
|---|
UpdateInstance() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isPossible(Instance instance,
CheckReport checkReport,
ProcessConstants.InstanceProperty... instanceProperties)
TODO change instance to instance id if we have a process repository Checks
if it is valid for the given instance to update the properties given by
Properties. |
static boolean |
isPossible(Instance instance,
ProcessConstants.InstanceProperty... instanceProperties)
TODO change instance to instance id if we have a process repository
Checks if it is valid for the given instance to update the properties given
by
Properties. |
static void |
performOperation(ChangeableInstance instance,
java.lang.String newName,
QualifiedAgent newSupervisorAgent,
java.util.Set<ProcessModelParameter> newInputParameters,
java.util.Set<ProcessModelParameter> newOutputParameters,
ProcessConstants.InstanceProperty... instanceProperties)
Updates the given instance using those of the given attributes which are
specified in instance properties.
|
static void |
performOperation(ChangeableInstance instance,
java.lang.String newName,
QualifiedAgent newSupervisorAgent,
java.util.Set<ProcessModelParameter> newInputParameters,
java.util.Set<ProcessModelParameter> newOutputParameters,
UpdateManager updateManager,
ProcessConstants.InstanceProperty... instanceProperties)
Updates the given instance using those of the given attributes which are
specified in instance properties.
|
public static boolean isPossible(Instance instance, ProcessConstants.InstanceProperty... instanceProperties)
Properties. The following attributes / properties may be
updated and must therefore be tested:
instance - the instance where the method is performed oninstanceProperties - the properties which should be changedpublic static boolean isPossible(Instance instance, CheckReport checkReport, ProcessConstants.InstanceProperty... instanceProperties)
Properties. The following attributes / properties may be
updated and must therefore be tested:
instance - the instance 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 nullinstanceProperties - the properties which should be changedpublic static void performOperation(ChangeableInstance instance, java.lang.String newName, QualifiedAgent newSupervisorAgent, java.util.Set<ProcessModelParameter> newInputParameters, java.util.Set<ProcessModelParameter> newOutputParameters, ProcessConstants.InstanceProperty... instanceProperties)
instance - the instance whose properties are updatednewName - the name of the instance (maybe null)newSupervisorAgent - the agent ID of the supervisor (maybe null)newInputParameters - the new input parameters of the instance (maybe
null)newOutputParameters - the new output parameters of the instance (maybe
null)instanceProperties - possible values of InstanceProperty are described
above.public static void performOperation(ChangeableInstance instance, java.lang.String newName, QualifiedAgent newSupervisorAgent, java.util.Set<ProcessModelParameter> newInputParameters, java.util.Set<ProcessModelParameter> newOutputParameters, UpdateManager updateManager, ProcessConstants.InstanceProperty... instanceProperties)
instance - the instance whose properties are updatednewName - the name of the instance (maybe null)newSupervisorAgent - the supervisor agent (maybe null)newInputParameters - the new input parameters of the instance (maybe
null)newOutputParameters - the new output parameters of the instance (maybe
null)updateManager - The update manager which will be informed about
process changes.instanceProperties - possible values of InstanceProperty are described
above.