Skip to main content
Version: 1.0.2

Direct

Direct is the simplest built-in action.

Factory

Direct.of(String name, Direct.Executable executable)

The callback shape is:

void execute(Context context) throws Throwable

Example

import org.paramixel.core.action.Direct;

Direct step = Direct.of("create user", context -> {
String baseUrl = context.getConfiguration().get("service.url");
// test logic here
});

Result behavior

  • normal return -> PASS
  • throw SkipException.skip(...) -> SKIP
  • throw FailException.fail(...) -> FAIL
  • any other thrown exception -> listener gets actionThrowable(...), then result becomes FAIL
  • throw Error -> propagates immediately (not caught, no result set)