fetch
Fetches a snapshot of the model of the given type for the default project using resilient model fetching.
See fetch for more details about resilient fetching.
Return
The fetch result.
Since
9.3.0
Parameters
The model type.
The model type.
Fetches a snapshot of the model of the given type for the given element using resilient model fetching.
See fetch for more details about resilient fetching.
Return
The fetch result.
Since
9.3.0
Parameters
The target element, usually a project.
The model type.
The model type.
Fetches a snapshot of the model of the given type using the given parameter using resilient model fetching.
See fetch for more details about resilient fetching.
Return
The fetch result.
Since
9.3.0
Parameters
The model type.
The model type.
The parameter type.
The parameter type.
Action to configure the parameter
Fetches a snapshot of the model of the given type for the given element using the given parameter with resilient model fetching.
Unlike getModel, this method uses resilient model fetching which means that if the model cannot be fetched due to an error, the method will not throw an exception. Instead, it returns a FetchModelResult that contains either the successfully fetched model or the failure information.
This is particularly useful when you want to fetch multiple models and continue processing even if some models fail to load, or when you need detailed information about why a model fetch failed.
Return
A FetchModelResult containing the target, the fetched model (if successful), and any failures that occurred. Check getFailures to determine if the fetch was successful.
Since
9.3.0
Parameters
The target element, usually a project. Pass null to target the default project.
The model type to fetch.
The parameter type used to configure the model fetch. Pass null if no parameter is needed.
Action to configure the parameter. Pass null if no parameter initialization is needed.
The model type.
The parameter type.