Skip to content

The "on" method cannot be called #30

@StavrosVrakas

Description

@StavrosVrakas

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?

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