I want to trigger a alfresco share workflow from my java(spring) web application, Can any one point me to the document or example on how this can be achieved.
And what dependency or jars do i require to make it work
Alfresco Share is just a pure UI, the workflow resides in Alfresco and this one provides the RESTful API to manage workflows.
Assuming you are running alfresco in your localhost in port 8080, if you go to http://localhost:8080/alfresco/service/index and log in as admin, then navigate to "Browse Webscripts by URI" and search for the keyword "workflow" in that page, you'll get different webscripts, you will need to find out with is the one you need.
Tip. If you use firebug or similar tool and trigger a workflow from Share, you'll get the URLs this calls in the network tab.