Skip to content

How to completely exit the engine execution? #330

Answered by newm4n
eduard-nomi asked this question in Q&A
Discussion options

You must be logged in to vote

Function Complete() will stop the engine execution loop and thus stops grule.

https://github.com/hyperjumptech/grule-rule-engine/blob/master/docs/en/Function_en.md#complete

On this line (

if dataCtx.IsComplete() {
) you can see that a condition check on the data context IsComplete() method will break the engine loop and thus finishing the engine execution.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@newm4n
Comment options

@eduard-nomi
Comment options

@newm4n
Comment options

@eduard-nomi
Comment options

Answer selected by eduard-nomi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants