We have a workflow for just about every folder we have in the vault. So I'm not sure if this would fix your problem or not.
As I understand it, you want only a specific department to be able to change state on a file in a specified folder?
You would need multiple transitions, one for each group, that only gives that group for example 'electrical' the permit permission. Then set up a condition, for filepath, that specifies which folder the user must be in.
If a user in the electrical group tries to change state on a file in a non- electrical sub folder, they would get an error that says the conditions have not been met.
hi thank you for the solution that you've share on us ....it is now working...i've added also a different work flow for each department and ive created different group of user's for each department ... thank you for the help best regards...