How to stop the process?

@naveen.s Are you using a RE Framework? means your process is transactional based If yes then you can follow the same…!

In initialization state put a Input Dialog Box Activity, create a output variable, which will store the user input in String Datatype.

Suppose User will enter end time: 13:30

Then, In Get Transaction state where you are assigning transaction item, put an if activity condition:

Now<DateTime.ParseExact(str_UserInput,"HH:mm",System.Globalization.CultureInfo.InvariantCulture)

Note: User should pass input time in correct format.

As you can see in below image current time was 14:05 and in input we passed 13:30 that’s why we got output as false. and execution will go to end process state, as no Transaction_Item value will be assigned.

Hope your query is cleared now!

Best regards,
Ajay Mishra