This content has been marked as final. Show 2 replies
For the purpose of this explanation, 'Decision X' is 'the person is happy'. Here's an idea to try...1 person found this helpful
Create a regular rule which checks whether 'the person is happy' is uncertain at any point in the specified interval:
the warning message should be triggered if
IntervalSometimes(2012-01-01, 2012-03-31, it is uncertain whether or not the person is happy)
Then create a Warning event rule, e.g.
Warning("Decision could not be made.") if
the warning message should be triggered
You could combine these two rules into one rule, but it will be easier to test if you add an intermediate attribute, e.g. something like 'the warning message should be triggered' I used above.
For more information about the IntervalSometimes function, search on "IntervalSometimes" in the OPM Help.
I wasn't sure from your question whether Decision X had to be uncertain for the entire interval or just some part of the interval, so here are descriptions of two functions to consider:
IntervalAlways(<start-date>, <end-date>, <condition>)
Returns true if and only if a boolean condition is true at all times in the interval from the start date (inclusive) to the end date (exclusive).
IntervalSometimes(<start-date>, <end-date>, <condition>)
Returns true if and only if a boolean condition is ever true in the interval from the start date (inclusive) to the end date (exclusive).