-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
featureNew functionality.New functionality.
Description
Goal:
Create a minimal, testable reference implementation of the TriggerService to support core CRUD operations and simulate basic trigger behaviour (manual and cron-based). This service is primarily intended for integration and unit testing — not for production use
Tasks
- Define basic schema and table for storing triggers (fields: UUID, studyId, workflowId, triggerType, config, active).
- Implement a
TriggerRepositoryinterface - Implement SQLightTrigger repo
- Implement a lightweight
DBBackedTriggerServicesupporting:-
createTrigger -
getTrigger -
updateTrigger -
deleteTrigger -
listTriggers -
startTrigger/endTrigger(update lifecycle state only).
-
- Add minimal logic to simulate trigger activation (e.g., basic cron matcher or flag to manually invoke).
- Add unit tests to verify all methods behave as expected.
Acceptance Criteria
- All methods defined in the
TriggerServiceinterface are implemented and tested. - The reference implementation supports both manual and cron-style triggers (basic simulation only).
- Lifecycle methods (
start,end) update the trigger state. - Example usage and JSON schema entries included for documentation/testing.
Metadata
Metadata
Assignees
Labels
featureNew functionality.New functionality.