Step 4: Running an Inline Function
So far, we haven't done anything here, even if the fraud check fails. How can we handle the case where the fraud check returned a fail, and we want to skip processing the deposit transaction? We can add another inline task that can check for the outcome of the fraud check and send a different message to our users via SMS or Email.
INLINE tasks can be scripted from the following template:
// Your code here
// Variables for this function needs to be explicitly added as inputs and once added you can
// refer to them using the $.<variable-name> notation.
return $.amount > 10000;
Read more on INLINE tasks here.