Question

5
Replies
438
Views
Mariane Ammar (MarianeA)
Murex

Murex
LB
MarianeA Member since 2016 74 posts
Murex
Posted: April 14, 2017
Last activity: July 27, 2017
Posted: 14 Apr 2017 3:35 EDT
Last activity: 27 Jul 2017 3:02 EDT
Closed

Set expiration of External Assignment to 1 HOUR (and not per day)

Hello,


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:


Lib(Pega-RULES:DateTime).addToDate("", param.DaysToExpiration, "0", "0", "0")


Below are the input parameters of the function:




This scenario is generating an error :

Show More

Hello,

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:

Lib(Pega-RULES:DateTime).addToDate("", param.DaysToExpiration, "0", "0", "0")

Below are the input parameters of the function:

This scenario is generating an error :

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 :)

Thank you,
Mariane

***Updated by moderator: Lochan to add Categories***

Show Less
User Experience
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.