Hello Aakash,
You will have to fill the fall back agents in BADI implementation /SAPSRM/BD_WF_RESP_RESOLVER. You can programatically determine the WF administrator using Function modules SWD_WF_DEFINITION_ADMIN_GET or SWD_GET_CUSTOMIZING.
Regards
sandy