Class ProcessInstance
java.lang.Object
com.bonitasoft.processbuilder.extension.ProcessInstance
Handles process instance operations for REST API extensions.
Provides methods for validating and processing process instance identifiers.
This class is responsible for validating caseId and id parameters as long values and ensuring they are within valid ranges.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetByCaseId(String caseIdParam) Validates and retrieves a process instance by case ID.longValidates and retrieves a process instance by ID.
-
Constructor Details
-
ProcessInstance
public ProcessInstance()
-
-
Method Details
-
getByCaseId
Validates and retrieves a process instance by case ID.- Parameters:
caseIdParam- the case ID parameter as a string- Returns:
- the validated case ID as a long
- Throws:
ValidationException- if the caseId is not a valid long
-
getById
Validates and retrieves a process instance by ID.- Parameters:
idParam- the ID parameter as a string- Returns:
- the validated ID as a long
- Throws:
ValidationException- if the id is not a valid long
-