pub type InvokeFn = fn(Box<dyn ExecutionContext>, Value) -> Pin<Box<dyn Future<Output = Result<(), BosonError>> + Send>>;
Invokes a registered task with execution context and JSON parameters.