@@ -33,7 +33,7 @@ public String getName() {
3333 }
3434
3535 public void writeToLog (SimulationModel model , String outputPathWithoutExtension ) throws IOException {
36-
36+
3737 TimeUnit timeUnit = DateTimeUtils .getReferenceTimeUnit ();
3838 double totalEndTime = model .presentTime ().getTimeAsDouble (timeUnit );
3939 Map <String , Map <Integer , List <ProcessNodeInfo >>> processNodeInfos = model .getProcessNodeInfos ();
@@ -352,8 +352,12 @@ else if (transition == ProcessNodeTransitionType.EVENT_BEGIN
352352
353353
354354 Map <String , Map <String , StatisticsTaskInstanceObject >> statsPerTaskOfProcess = statsPerTask .get (processId );
355+ Map <Integer , String > originalIdentifiers = model .getDesmojObjectsMap ().get (processId ).getProcessModel ().getIdentifiers ();
355356 // add activities
356357 for (String processScopeNodeId : statsPerTaskOfProcess .keySet ()) {
358+
359+
360+ String originalId = originalIdentifiers .get (Integer .parseInt (processScopeNodeId ));
357361
358362 long taskDuration = 0 ;
359363 for (StatisticsTaskInstanceObject instance : statsPerTaskOfProcess .get (processScopeNodeId ).values ()) {
@@ -372,7 +376,7 @@ else if (transition == ProcessNodeTransitionType.EVENT_BEGIN
372376 Element activity = new Element ("activity" );
373377 processActivities .addContent (activity );
374378
375- activity .addContent (new Element ("id" ).setText (processScopeNodeId ));
379+ activity .addContent (new Element ("id" ).setText (originalId ));
376380 Element activityName = new Element ("name" );
377381 Element activityCost = new Element ("cost" );
378382 Element activityTime = new Element ("time" );
0 commit comments