class ProcessInstanceEventBatch implements EventBatch {

    protected String extractRuntimeSource(Map<String, String> metadata) {
        String processId = metadata.get(ProcessInstanceEventBody.PROCESS_ID_META_DATA);
        if(processId == null){
            return null;
        } else {
            return service + "/" + (processId.contains(".") ? processId.substring(processId.lastIndexOf('.') + 1) : processId);
        }
    }

    public  ProcessInstanceEventBatch(String service, Addons addons);

}