Hi @Carlos S3,
Yes, you can use an if condition along with an object property method to access the state of the processor. Here I have used a state string. Similarly, you can use a state number.
State number and state string can be known from stats node of the processor tree.
string State = Processor.stats.state().valueString; // returns the state of an object as string
int Statenum = Processor.stats.state().value// returns the state of an object as integer
if condition along with the object property.
Object Processor = model().find("Processor1");
if(Processor.stats.state().valueString == "idle") // Similarly use busy state
{
Processor.color = Color.red;
}
state-profile screen shot- statenum and statestring are taken from the profile node.

Regards,state.fsm
Arun KR