addActivitiesImplementations(defaultActivitiesTaskListToPoll, activityImplementationObjects);
}
public void addActivitiesImplementations(String taskList, Iterable<Object> activityImplementationObjects) {
try {
TestPOJOActivityImplementationWorker worker = getActivityWorker(taskList);
worker.setActivitiesImplementations(activityImplementationObjects);
activityClient.addWorker(worker);
}
catch (Exception e) {
throw new IllegalArgumentException("Invalid activities implementation: " + activityImplementationObjects, e);
}