Hi Veni
In your exit, if you have the work item ID, then before executing the decision/activity, call FM SAP_WAPI*GET*DETAIL (sorry, do not have system access to give the exact name) ... this will give you work item type. Based on that, for activity you can call sap_wapi_workitem_complete OR decision complete for a decision step..
regards,
Modak