Skip to content

Why isn't the actionFunction working properly? #1194

@aohanhe

Description

@aohanhe

`.actionFunction(context -> {
Flux businessFlux = Flux.just("A", "B", "C")
.delayElements(Duration.ofMillis(1000))
.map(item -> {
if ("B".equals(item)) {
RuntimeException err = new RuntimeException("test one error");

              throw err;
            }
            return item;
          });

      return businessFlux.then();
    })`

The result of stateMachine.sendEvent is always ACCEPTED. Why is this happening and how can I handle it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    status/need-triageTeam needs to triage and take a first look

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions