Closed jasquat closed 2 weeks ago
spiffworkflow-backend/src/spiffworkflow_backend/routes/process_api_blueprint.py (3)
`32-32`: Ensure that the newly imported `BpmnProcessModel` is utilized appropriately in the file. --- `36-36`: Ensure that the newly imported `JsonDataModel` is utilized appropriately in the file. --- `139-167`: Review the updated logic for fetching BPMN process data. Ensure that the error handling and data retrieval are correctly implemented and that the new parameters (`bpmn_process_guid` and `process_identifier`) are used effectively.spiffworkflow-backend/tests/spiffworkflow_backend/integration/test_process_api.py (3)
`16-16`: New import of `BpmnProcessModel` added. --- `17-17`: New import of `BpmnProcessDefinitionModel` added. --- `3329-3377`: New test method `test_process_data_show_with_sub_process` added to verify subprocess data retrieval.
Fixes #1485:
This updates the process-data api call to use the database directly to get data objects instead of using the processor. This also simplifies the api since it no longer needs the bpmn identifier since the guid is even better. It also adds a test to ensure this is working now.