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

missed Action2/Action3 for enter2/enter3 #68

Open
pli2014 opened this issue Aug 5, 2018 · 1 comment
Open

missed Action2/Action3 for enter2/enter3 #68

pli2014 opened this issue Aug 5, 2018 · 1 comment

Comments

@pli2014
Copy link

pli2014 commented Aug 5, 2018

image

from this com.github.oxo42.stateless4j.StateConfiguration design, there are many onEntry and onEntryFrom methods for different situation. If passed this userInfo as context by calling fire method in state machine, how to get this parameter context in onXXX method ?

        UserInfo userInfo = new UserInfo(1L);
        //phoneCall.fire(Trigger.CallDialed);
        phoneCall.fire(new TriggerWithParameters1(Trigger.CallDialed, UserInfo.class), userInfo);

Please give me some suggestion, thx.

@Ktar5
Copy link
Contributor

Ktar5 commented Aug 9, 2018

I'm sorry I'm trying to figure out exactly what you're asking.

Correct me if I'm wrong, but you're trying to pass the userInfo as a parameter, right? And then try to access it in the onEntry?

P.s.: Sorry for the 4 day reply

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

2 participants