Vanessa Hudgens has joined the cast of “Second Act,” the upcoming romantic comedy starring Jennifer Lopez.

Peter Segal will direct the film, which was developed by STXfilms with Lopez from an idea conceived by Elaine Goldsmith-Thomas and Justin Zackham.

The movie is in the vein of “Maid in Manhattan” and “Working Girl.” Lopez will play a big-box store employee who reinvents her life and her lifestyle, and gets the chance to prove to Madison Avenue that street smarts are as valuable as a college degree.

Hudgens will play a young executive at a consumer goods company. She’s currently filming Ken Marino’s “Dog Days,” and most recently starred in the NBC series “Powerless.” Her additional credits include “Spring Breakers,” “Gimme Shelter,” “Machete Kills,” the Broadway revival of “Gigi,” and as Rizzo in “Grease: Live” in 2016.

“Second Act” is written by Zackham (“Lights Out”) and Goldsmith-Thomas. Producers are Goldsmith-Thomas, Lopez, Zackham, and Benny Medina. Leah Remini is attached to portray the best friend and fellow employee of Lopez’s character.

STX unveiled the project in July. Hudgens is repped by CAA and Untitled Entertainment.

Lopez made the announcement about Hudgens Tuesday on her Instagram account.