Rinse the rice under cold water until the water runs mostly clear. Add it to a rice cooker with the appropriate amount of water, or cook according to the package directions. Keep covered and warm while preparing the curry.
Peel and dice the onion, carrots, and potatoes into evenly sized pieces. Chop the bell pepper, trim and cut the green beans, and slice the mushrooms. Mince the garlic and grate the fresh ginger and apple. Keeping the vegetables relatively uniform helps them cook evenly.
Heat the vegetable oil in a large pot or Dutch oven over medium heat. Add the diced onion and cook for 5–7 minutes, stirring occasionally, until softened and lightly golden. Stir in the garlic and ginger and cook for another minute until fragrant.
Add the carrots and potatoes to the pot. Stir well to coat them with the aromatics and cook for 2–3 minutes. Add the grated apple and tomato paste, stirring until everything is evenly combined.
Pour in the vegetable broth and add the soy sauce, salt, and black pepper. Bring the mixture to a gentle boil, then reduce the heat to medium-low. Cover and simmer for 15–18 minutes, or until the potatoes and carrots are almost fork-tender.
While the vegetables simmer, melt the butter in a separate saucepan over low heat. Add the flour and whisk continuously for 2–3 minutes until a smooth paste forms and begins to turn lightly golden. Stir in the Japanese curry powder, garam masala, and cayenne pepper, if using. Cook for another 30 seconds until fragrant, then remove from the heat.
Ladle about 1/2 cup of hot broth from the vegetable pot into the roux, whisking until smooth. Add the roux mixture back to the curry pot, stirring thoroughly to prevent lumps. Simmer gently for 3–5 minutes until the sauce becomes thick, glossy, and well blended.
Stir in the mushrooms, red bell pepper, and green beans. Cook uncovered for 5–7 minutes, until the vegetables are tender but still hold their shape. Add the frozen peas during the last 2 minutes of cooking.
Taste the curry and adjust the salt, pepper, or soy sauce as needed. If the sauce becomes too thick, add a little vegetable broth or water to reach your preferred consistency. Spoon the warm vegetable curry over freshly cooked Japanese rice and serve immediately.