Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for past entity instead of just old state value inside state validator function param #5

Open
r1jsheth opened this issue Feb 27, 2023 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@r1jsheth
Copy link
Member

Currently inside the function annotated with @TransitionValidator

fun functionName(id: Long, oldVal: Any, newVal: Any) {
    // oldVal is just the field
    // if we want to parse the whole entity, we can not
    // we can have the function as the following instead
    // fun functionName(id: Long, oldVal: Object, newVal: Object)
    // where we get the whole past snapshot of the object, which we can not query via DB.
}
@r1jsheth r1jsheth added the help wanted Extra attention is needed label Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant