Task with Result
A regular Task has TaskResult<Void>
as return type:
TaskResult<Void> perform(ParameterContext<InvoiceDetails> targetParameter) { }
But it is possible to change this using the hasResultClass
option:
TaskResult<MyResult> perform(ParameterContext<InvoiceDetails> targetParameter) { }
This is sometimes used when a Task is executed as part of another process.