You would have to work with the source code and write your own widget. It is not possible to set it up with the compiled version.
Yes, geoprocessing tasks can be consumed by the Flex Viewer (if you have a matching widget).
In your case, you don't need to do it using a geoprocessing task, but instead combine selections and editing functionality into your own new widget.