I have requirement to create one business process which contains lots of task which require to call REST API(this is my own API). Can we do any code in delegate(service task) for call any web service?
No, but any example online with HttpClient, Spring RestTemplate, etc. works just fine in a JavaDelegate, as long as you include the those libraries on your classpath.