@Pratiksha KC 

you cannot use your existing flow implementation.

As mentioned you will have to move your logic to subflow OR use scripting

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader