Interface Models
public interface Models
Models
Models provides access to models with autoscale enabled.
Note: Only process models with autoscaling mode enabled are compatible with this interface.
-
Method Summary
Modifier and TypeMethodDescriptiongetModel
(ModelReference modelReference) Get the latest published version of the given process model that has autoscale enabled.modelReference
(String modelUuid) Generate an ModelReference from a modelUuid.If you already know the process model UUID, do not use this method.
-
Method Details
-
modelReferences
Set<ModelReference> modelReferences()If you already know the process model UUID, do not use this method. Obtain the ModelReference from autoscale.process.modelReference directly. The process model must be published and secured in autoscaling mode in order to be available to this method. These UUIDs match the UUID of the traditional process model object (i.e., if you know the process model UUID, and publish that process model in autoscaling mode, this will be the same UUID). These UUIDs do not change. Once you've found the UUID, you may continue to use it, even between restarts. It is safe to encode the UUID as a constant. Note: Only process models with autoscaling mode enabled are compatible with this function.- Returns:
- the Set of available autoscale process model UUIDs, suitable for use in getModel(String).
-
modelReference
Generate an ModelReference from a modelUuid. A ProcessModel's getUuid() is valid, if that ProcessModel has been published with autoscale enabled. Note: Only process models with autoscaling mode enabled are compatible with this function.- Parameters:
modelUuid
- (only shallow validations are done)- Returns:
- an instance of ModelReference representing the given modelUuid
-
getModel
Get the latest published version of the given process model that has autoscale enabled. Note: Only process models with autoscaling mode enabled are compatible with this function.- Parameters:
modelReference
- (null yields NullPointerException, empty yields IllegalArgumentException), as retrieved from models().- Returns:
- an instance of AutoscaledProcessModel
- Throws:
ModelNotAvailableException
-