NodeBaseExecuteInner Method
Executes the custom logic for this type of node. The node must end when all exit ports have been properly filled in.
The following rules apply when running a node:
- Valid input from ports – The input provided by the ports must already be in a valid state; for example,
if we want an EnvironmentDto, it shouldn't provide us with its Guid ID. Or be .
- Ensure expected behavior happens, throw Exceptions otherwise. – Note it says expected, not valid behavior. If the behavior is invalid
(say, a third party API having an outage or providing us a non-OK status result) it is still an expected result.
However, trying to retrieve an EnvironmentDto from the database and receiving is unexpected.
The difference is that the former we can anticipate for and handle as it is an event that can happen,
the latter we cannot handle as it is an event that should never happen.