Summary
In this chapter, we have looked at several ways in which we can integrate Apex and Flow together to help us deliver more functionality faster and work in tandem with point-and-click developers and administrators.
We began by reviewing Apex and Flow and why there is often some debate as to whether one is better than the other or should be used in preference. As we discussed, the tools should be reviewed and discussed together as complementary and that often you may need to migrate logic from one to the other as the system changes and develops.
After this, we discussed the primary way in which Apex and Flow interact directly: invocable actions. We had already seen that platform events enable Apex and Flow to interact at a distance, while invocable actions allow Flow to directly call Apex code and methods. We then reviewed how we would test this code to allow us to deploy it and ensure that it was functioning correctly.
The definition of these methods allowed us to discuss...