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

The "on" method cannot be called #30

Open
StavrosVrakas opened this issue Jul 26, 2017 · 1 comment
Open

The "on" method cannot be called #30

StavrosVrakas opened this issue Jul 26, 2017 · 1 comment

Comments

@StavrosVrakas
Copy link

StavrosVrakas commented Jul 26, 2017

Hello everyone,

I am trying to use the EasyFlow framework, but I have a problem when I try to call the "on" method.

I have writen the following code:

public enum States implements StateEnum {
    NEW, SUGGESTION
}

public enum Events implements EventEnum {
    CONFIRM, CANCEL
}

EasyFlow<FlowContext> flow = 
                FlowBuilder.from(States.NEW)
                .transit(
                        on(Events.CONFIRM).to(States.SUGGESTION));

At the code above, the "on" method is not recognized.

Do you have any idea how I could resolve this problem?

@mdvx
Copy link

mdvx commented Nov 24, 2017

I had problems with versions prior to au.com.datasymphony:EasyFlow:1.3.1

did you create a static import for on and from

I have:

import static au.com.ds.ef.FlowBuilder.on;
import static au.com.ds.ef.FlowBuilder.from;
import static com.mdvx.android.xxx.statemachines.MyMachine.MyStates.;
import static com.mdvx.android.xxx.statemachines.MyMachine.MyEvents.
;

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