Getting ready

We will continue to build on the alExtensibleAppProject project that we started in this chapter. You can download it from the GitHub link at the start of this chapter. In addition to the project, you will need to download the ch6-design-pattern-discovery.zip file from the ch6/3-design-pattern-discovery folder.

The scenario we're dealing with here is as follows:

  • We've had feedback on our application that some customers wish to execute further functionality after a transaction entry is posted.
  • Depending on the transaction, a different process needs to be run.
  • We will handle this by allowing the user to specify Post Transaction Action on each transaction before posting.

Assuming our application is being used by multiple customers, we need to allow for flexibility in the actions that we make available, and we cannot account for every possibility that a customer may come up with, so we will use the Discovery pattern to allow each customer to use to add their own actions as they see fit.

For the purposes of this recipe, the following has already been done:

  • A new Post Transaction Action table was created to hold the action entries.
  • A new Post Transaction Action field was added to the Transaction Entry table to allow the user to specify the post-transaction action.
  • The posting routine has been updated to process any post-transaction actions.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.14.253.152