calworkminutesplugin is working fine in expression rule. But when i call the expression rule from the process model getting the below error message.
Expression evaluation error in rule 'xxxxx' at function 'calworkminutesplugin' [line xx: ) (Data Outputs)
Any Suggestions Please.
Discussion posts and replies are publicly visible
I am not using any timezone and as well as calendar.
I might have to disappoint you. This function works with a process calendar which by default has a working time between 9am and 5pm. Both of the timestamps you are outside of that working time.
Now, the big question, do you need to respect working time?
no. I want to calculate network min based on the date and time.
this function is not working if pass calendar
any other suggestion
In the plugin "Date and Time Utilities" there is a function elapsedminutes().
true but it will not consider the network hours and calendar. i want calculate only lapsed network min
It's either calworkminutesplugin() for net work minutes or elapsedminutes() for total minutes.
All the net work stuff in Appian is based on the Process Calendar.
Sure. But this plug-in is not working correctly if add calendar. without calendar its working.
It's taking the default system calendar.
calworkminutesplugin(): This returns the actual number of work minutes between two given Datetimes (both inclusive), according to the calendar defined for the system.
That's pretty simple. Any time outside the working time is considered zero. So
calworkminutesplugin(datetime(2023,09,15,5,15),datetime(2023,09,15,5,25))
returning 0
is the expected behaviour.
i tried with deferent calendar but its not working. works fine for without calendar