- m_host_t host = MSG_process_get_host(process);
- container_t host_container = getContainer(host->name);
- container_t msg = newContainer(instr_process_id(process, str, len), INSTR_MSG_PROCESS, host_container);
-// type_t type = getType (category);
-// if (!type){
-// type = getVariableType(category, color, msg->type);
-// }
-// new_pajeSetVariable (SIMIX_get_clock(), msg, type, 1);
-
- type_t type = getType ("MSG_PROCESS_STATE", msg->type);
- new_pajeSetState (MSG_get_clock(), msg, type, "executing");
+ container_t host_container = PJ_container_get (SIMIX_host_get_name(host->smx_host));
+ PJ_container_new(instr_process_id_2(process_name, process_pid, str, len), INSTR_MSG_PROCESS, host_container);