This request came true with the FirstSpirit 4.2 R4 release.
import de.espirit.firstspirit.agency.OperationAgent;
import de.espirit.firstspirit.ui.operations.RequestOperation;
// get operation agent
operationAgent = context.requireSpecialist(OperationAgent.TYPE);
// get request operation
requestOperation = operationAgent.getOperation(RequestOperation.TYPE);
// configure request operation
no = requestOperation.addAnswer("Oh, you better don't ask!");
waiting = requestOperation.addAnswer("Maybe, maybe not. Who knows?");
yes = requestOperation.addYes();
requestOperation.setInitialAnswer(waiting);
requestOperation.setKind(RequestOperation.Kind.ERROR);
requestOperation.setTitle("Happy Day");
// perform request to open dialog
result = requestOperation.perform("Are you okay?");
if (result == yes) {
requestOperation = operationAgent.getOperation(RequestOperation.TYPE);
requestOperation.perform("Oh, really? Then have a nice day ! 🐵 ");
}