Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The business logic for an end point describes the work that will be done when the end point executes.  Business logic is defined as a chain of Aptify process flows.  The framework will execute every process flow in the chain.  The only way to abort processing is for your process flow to throw an exception.  You should throw strongly typed exceptions so they can be interpreted by the error handling framework and produce meaningful output to your callers.  TODO link to error framework.  

The business logic property value is an object.  The object is made of one to many properties whose values are objects with the following properties.  

...

When discussing output entity definitions we said that the framework will only map the last piece of output from the last piece of business logic that executed.  Sometimes the last process flow to execute doesn't return the data you want to return from the end point.  The output may exist in another piece of business logic that executed earlier.  A special process flow 'Map Context Property' exists for this situation.  It takes a piece of input and returns it as output.  This allows you to take a piece of output from earlier in the business logic chain and return it as the last piece of output.  You will see examples of this throughout the stock metadata.