Replies: 2 comments 1 reply
-
@hmik did you find any solution?? i am stuck too. |
Beta Was this translation helpful? Give feedback.
1 reply
-
It seems like module A depends on module B. I think that direct service call from module A to module B would be a much better approach to retrieve the doc file. Your event is actually a command, the result of which is necessary for module A to process the request. Calling the service directly looks much more natural and does not cause a cyclic dependency |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This is my workflow:
Module A:
Controler gets a Request, passes the data to the service, the Service retrieves the data from the Repository and pubilshes an Event "GenerateDocFile"
Module B:
Listens for the Event, extracts the data, calls the Service that generates the Doc file.
The Doc file has to be returned to Module A so it can be returned to controller and downloaded
I tried 2 approaches:
While both approaches work,
the modules.verify() tets always fails because it detects a cycle.
Is there a way to set this up so the test will be successful?
Beta Was this translation helpful? Give feedback.
All reactions