SequenceFlow_1 SequenceFlow_1 SequenceFlow_2 System.out.println("Parent-process id = "+kcontext.getProcessInstance().getId()); java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("mm-dd-yyyy"); kcontext.setVariable("tag", sdf.format(new java.util.Date())); SequenceFlow_2 SequenceFlow_3 SequenceFlow_4 SequenceFlow_4 SequenceFlow_5 System.out.println("Embedded-process id = "+kcontext.getProcessInstance().getId()); java.util.List<String> taggedMessages = new java.util.ArrayList<String>(); for (Object message : messages){ taggedMessages.add(((String)message)+" - "+tag); } kcontext.setVariable("messages",taggedMessages); SequenceFlow_5 SequenceFlow_3