Skip to content

Pass parameters to fn? #59

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

Open
grapemix opened this issue Nov 1, 2024 · 1 comment
Open

Pass parameters to fn? #59

grapemix opened this issue Nov 1, 2024 · 1 comment

Comments

@grapemix
Copy link

grapemix commented Nov 1, 2024

Is your feature request related to a problem? Please describe.
In your tests, I saw an example which allows us to call an fn. For example, if we want to set the value to other values (1-99), can we reuse the fn by pass parameters other than writing 98 extra fns?

Writing duplicating fn is annoying, I can live with it. But what I really want is to compare two value to see if we can advance state, so passing parameters is the only solution.

Describe the solution you'd like
For example,

<Expression>testBaseStateMachine.isOlderThan(currentAge, NewAge)</Expression>

Or

<Expression>
  <Fn>testBaseStateMachine.isOlderThan</Fn>
  <Param>
    <Value>currentAge</Value>
    <Value>NewAge</Value>
  </Param>
</Expression>

Finally, thanks for your open source work.

Copy link

github-actions bot commented Nov 1, 2024

Thank you so much for your Open First Issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant