Are you using Activiti in an Alfresco-environment? If not, you should add additional beans (see userguide, configuration section). These beans are just java-objects. You can use these beans in your scripts by calling it's methods, passing in any data you want. In the java-implementation, you can use any HTTP-framework you want to do the heavy lifting.