Question
Royal Bank of Canada
CA
Last activity: 10 Aug 2017 6:56 EDT
Need Date type Circumstance clarification
Hi,
This is just a clarification question on circumstance. When I create two circumstance specialized rules with start and end dates, one from April to September and other from June to August in the same version, then for July time period which one will be picked?
Thanks in Advance.
***Updated by moderator: Lochan to add Categories***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Updated: 4 Aug 2017 11:50 EDT
Virtusa Consulting UK
GB
BUPA
AU
I think one from April to September
Royal Bank of Canada
CA
Hi Swarnendu , thank you for the reply but could you please give me the reason?
Pegasystems Inc.
US
Hello,
I would look at the generated java. I think it will probably depend on which you create first (just a guess). What will happen is you'll get code along the lines of...
if(circumstance1 == true)
{
circumstance1 version
}
else if(circumstance2==true)
{
circumstance2 version
}
else
{
base version
}
Since both circumstances would evaluate to true, the first one in the code (and I'm not sure how the code generation orders things, though I expect we don't make any promises either way) will win.
Thanks,
Mike
-
Durga Vara Prasad Narayana Rao Bali
Royal Bank of Canada
CA
Thanks Mike for the clarification.
Accepted Solution
Updated: 4 Aug 2017 11:50 EDT
Virtusa Consulting UK
GB
-
Durga Vara Prasad Narayana Rao Bali
Royal Bank of Canada
CA
Thanks Kautukshet for the answer and clarification given.
Virtusa Consulting UK
GB
Glad it helped.
-
Durga Vara Prasad Narayana Rao Bali