Click HERE to see how Saviynt Intelligence is transforming the industry. |
03/17/2023 09:38 AM
Hi Team,
Working on workflow to allow employees to create autoapprove request to access workloads during office hours. Office timing is from 8AM EST to 5PM EST. Please share the variables to be used in workflow condition.
Thanks,
Manju
Solved! Go to Solution.
03/17/2023 09:47 AM - edited 03/17/2023 09:53 AM
Try to use this to get the system date and time when request generated compare with the range you looking for (try with or without groovy as expression language)
calendar.get(Calendar.HOUR_OF_DAY)>7 and calendar.get(Calendar.HOUR_OF_DAY)<18
03/20/2023 11:31 AM
Hi Team,
Tried both the conditions in workflow. Getting internal error while creating request. Looks like it is related to workflow condition
Regards,
Manjunatha V
03/20/2023 12:34 PM
Can you check in logs if any additional information/logs is available on why it is failing and share it
03/20/2023 02:02 PM
Hi Saathvik,
Below are the log details
03/21/2023 07:05 AM
Hey try below, Also make sure if you need time/hour in different time zone please change highlighted section accordingly.
Calendar.getInstance(TimeZone.getTimeZone("EST5EDT")).get(Calendar.HOUR_OF_DAY)
03/22/2023 12:15 PM
Thanks Saathvik. It worked.
To above condition now I am planning to add condition where only employee usergroup will be able to go for auto approval. Contract usergroup should go for manager approval.