Adding deciderLogic to the WOrkflow code