toSuccessfulOutcome

public Success toSuccessfulOutcome(Object rawResult, CommandHandler target, CommandEnvelope handledSignal)

Converts the raw method result to a successful propagation outcome.

Return

the method result

Parameters

rawResult

the return value of the method

target

the method receiver

handledSignal

the handled signal

Throws

if the method produced result of an unexpected format