It looks like you're understanding fine - we may need to look at the underlying chain handler to see how it's handling failures (and not reaching the end of chain task - which is simply an internal terminator that returns the value).
Where in the core code are you seeing the exception?
How to fail a task chain
I am just wondering how to correctly fail a task chain method. I may misunderstand them.
I have a custom task in the OrderPreparationOrderCreate.
This is fired my adding a payment to the invoice.
My custom task then obviously succeeds or fails. Success is easy to handle.
However if I fail:
Then the Merchello core code throws a null reference exception. Is that the correct behaviour?
Hey Kevin,
It looks like you're understanding fine - we may need to look at the underlying chain handler to see how it's handling failures (and not reaching the end of chain task - which is simply an internal terminator that returns the value).
Where in the core code are you seeing the exception?
I have added a task to the OrderPreparationOrderCreate task chain. The code below should reproduce produce the issue.
merchello.config
Code
Thanks Kevin,
Would you please add this to the issue tracker: http://issues.merchello.com so it does not fall off our radar ...
Created as M-1217 :)
is working on a reply...