After #863 we now need to incorporate this change to the DSL. So users can do:
workflow().tasks(f -> f.callFn(fn -> fn.function(myfunction::doSomething).exportAs((WorkflowContext, TaskContext) -> myExporter::export))
Also, improve the shortcuts to something like:
workflow().tasks(call(function(myFunction::doSomething).exportAs(myExporter::export))))