Starting several processInstances in one Transaction

Hi!

For example, I have to create four processes at one time. But if one of them failed I need to rollback already created processes (remove them).

I suppose it should look like:

 @Transactional
    public List<ProcessInstance> startMultipleProcessInstances(Map variablesMap)  {

        List<ProcessInstance> startedProcessInstances = asList("id1", "id2", "id3", "id4", ).stream()
                .map(someId -> {
                    variablesMap.put(SOME_ID, someId);
                    return runtimeService.startProcessInstanceByKey("MyProcessKey", variablesMap);
                })
                .collect(toList());

		return startedProcessInstances;
    }

Is it possible to start several processes in one transaction?