Interface Model
- All Superinterfaces:
ModelReference
Model
A Model represents a given process model that is intended to run in EPEx.
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
getProcess
(ProcessReference processReference) Get a process instance.getProcessReference
(String processUuid) Get a reference to an already existing EPEx process instance.initiateAsynchronous
(Parameter... parameter) Asynchronously initiate a process instance of this model.variableReferenceOnModel
(VariableReference variableReference) variableReferenceOnModel
(String variableNamespace, String variableName) Methods inherited from interface com.appiancorp.suiteapi.epex.model.ModelReference
getUuid
-
Method Details
-
variableReferencesOnModel
Set<VariableReferenceOnModel> variableReferencesOnModel()- Returns:
- unmodifiable Set of VariableReferenceOnModel defined by this process model
-
variableReferenceOnModel
- Parameters:
variableReference
-- Returns:
- variableReference defined by this model, if present
-
variableReferenceOnModel
Optional<VariableReferenceOnModel> variableReferenceOnModel(String variableNamespace, String variableName) - Parameters:
variableNamespace
-variableName
-- Returns:
- variableReference defined by this model, if present
-
parameterSignature
List<VariableReference> parameterSignature()- Returns:
- unmodifiable List of VariableReferences parameters supported by this process model
-
initiateAsynchronous
Asynchronously initiate a process instance of this model. This works by requesting that the process be run, rather than by running it immediately, so there may not be data available immediately. To distinguish between the case of 'no data because not yet run' and 'no data because process has completed and deleted its data', check the process status available from the Process. The process's UUID and process's state are available immediately, regardless of the asynchronous nature.- Parameters:
parameter
-- Returns:
-
getProcessReference
Get a reference to an already existing EPEx process instance. The process must exist at the time of this call.- Parameters:
processUuid
-- Returns:
-
getProcess
Get a process instance.- Parameters:
processReference
-- Returns:
-
getName
- Returns:
- name if available
-