- 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");
- new_pajeSetState (MSG_get_clock(), msg, type, "executing");
+ container_t msg = newContainer(instr_process_id_2(process_name, process_pid, str, len), INSTR_MSG_PROCESS, host_container);
+
+ type_t type = getType ("MSG_PROCESS_STATE", msg->type);
+ val_t value = getValueByName ("executing", type);
+ new_pajeSetState (MSG_get_clock(), msg, type, value);