Package com.yworkflow.instance
Interface WorkflowInstanceRepository
public interface WorkflowInstanceRepository
Repository interface for managing workflow instance entities. WorkflowInstanceRepository provides
basic CRUD operations for workflow instance entities, supporting persistence and retrieval of
workflow instance data with proper access control.
- Since:
- 1.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionget(WorkflowCallerContext callerContext, WorkflowInstanceId workflowInstanceId) Retrieves a workflow instance entity from the repository.voidsave(WorkflowCallerContext callerContext, WorkflowInstanceEntity workflowInstanceEntity) Saves a workflow instance entity to the repository.
-
Method Details
-
save
Saves a workflow instance entity to the repository.- Parameters:
callerContext- the context of the caller performing the operationworkflowInstanceEntity- the workflow instance entity to save
-
get
Optional<WorkflowInstanceEntity> get(WorkflowCallerContext callerContext, WorkflowInstanceId workflowInstanceId) Retrieves a workflow instance entity from the repository.- Parameters:
callerContext- the context of the caller requesting the entityworkflowInstanceId- the ID of the workflow instance to retrieve- Returns:
- an Optional containing the entity if found, empty otherwise
-