Set expiration of External Assignment to 1 HOUR (and not per day)
I am using an external assignment and I need it to expire in 1hour.
Currently we can only set the DaysToExpiration as you can see in the below screenshot; so I set the equivalent of 1hour in the 'DaysToExpiration' field:
After investigation, we noticed that this External Assignment calls the OOTB Final Activity Work-.External that -among other usages- calculates the value of the property pyExpiration on step#7 by calling the OOTB function DateTime addToDate as such:
com.pega.pegarules.pub.runtime.LibraryFunctionNotFoundException: Problem invoking function: pega_rules_datetime.addToDate--(String,String,String,String,String), For input string: "0.041667"
I cannot edit the final OOTB activity Work-.External to give her as parameter 1 hour and I do not want to edit the OOTB function in fear of a regression since it is used by many rules defined under the PegaRules Ruleset.
Any idea about how to tackle this issue will be greatly appreciated :)
***Updated by moderator: Lochan to add Categories***
Thank you for posting your query in the PSC. This looks like an inactive post and hence, we suggest you create a new post for your query. Click on the Write a Post button that’s available on the top right pane of this page. Once created, please reply back here with the URL of the new post.
We have also sent you a private message opening up a communication channel in case you have any further questions.