Yes - I created a task which has 2 hard set action choices (2 day, and 7 day lock)to allow it to be put into a baseline or part of multi action… and also have 2 prompted options to support the adhoc lock for X hours, and lock for X days.
Example of Prompted hours:
// Lock for hours
action parameter query “_hours_wait” with description “Lock the system for how many hours [hh]”
action lock until “{now + (parameter “_hours_wait” as integer) * hour}” “{parameter “action issue date” of action}” for client