How to run a workflow immediately?

I have a scheduled workflow, but I want users to be able to run the workflow immediately without waiting for the scheduled time in Temporal SDK.
How can I do that?
Thank you.

Hello @nnv_saka

You can use the ScheduleHandle.trigger method ScheduleHandle - temporal-sdk 1.20.0 javadoc

There is an example here samples-java/core/src/main/java/io/temporal/samples/hello/HelloSchedules.java at 307a2df3e5adc269fb21d8a7e8afdd001d9ef72d · temporalio/samples-java · GitHub

Let us know if it helps

Antonio