Skip to content

Pass parameters to fn? #59

@grapemix

Description

@grapemix

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions