feat: update getWorkflowDTO method to include optional data retrieval and adjust related event handling