- container_t msg = newContainer(process->name, INSTR_MSG, getContainer(new_host->name));
- type_t type = getType (process->category);
- pajeSetVariable(SIMIX_get_clock(), type->id, msg->id, "1");
+ msg = newContainer(process->name, INSTR_MSG_PROCESS, getContainer(new_host->name));
+ type = getType (process->category);
+ new_pajeSetVariable (MSG_get_clock(), msg, type, 1);
+
+ //end link
+ msg = getContainer(process->name);
+ type = getType ("MSG_PROCESS_LINK");
+ new_pajeEndLink (MSG_get_clock(), getRootContainer(), type, msg, "M", key);