Codeless Stop Event Process

I read in the CloudCode docs that I can stop the processing of an event by returning

{ short:true}

Is it possible to stop an event from processing in Codeless?

When I try the below (image)

I get an error when calling the event

PrematureResult in your event handler has incompatible type ‘java.util.HashMap’, whereas return type is ‘java.lang.Boolean’.

I think it us due to the returning “short” being a string value.

Hello @Bennie_Matthee

Have you tried to return just “true”?

And yes, any Codeless Logic can be interrupted by using the “return” block, you can find it in the “Logic” category

Regards, Vlad

Hi,

Thank you for your response.

I am actually wanting to abort the beforeRestorePassword event.

do you have any problems with that? or we can mark the topic as solved?

By returning “void” like in your example, it still continues through to the “RestorePassword” action.
I was looking for a way to abort the action on the beforeRestorePassword event.

You can close this topic.
I have in the meantime created a new api service the do what I needed.

Thanks