ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 9 - AD01 discussion

Report
Export

Examine the following Blue Prism Process diagram which is intended to get the date of the previous day as a date value:

The Calculation stage Properties window is provided below:

Which are the following statements about this process diagram are correct?

A.
None of these statements are correct
Answers
A.
None of these statements are correct
B.
If the 'Result Date' data item is configured as a Text data type, then a 'data type mismatch' Internal Exception will be thrown on execution of the Calculation stage
Answers
B.
If the 'Result Date' data item is configured as a Text data type, then a 'data type mismatch' Internal Exception will be thrown on execution of the Calculation stage
C.
If the 'Result Date' data item is configured as a Date data type, then the 'Result Date' data item will be set to the date of the previous day on execution of the Calculation stage
Answers
C.
If the 'Result Date' data item is configured as a Date data type, then the 'Result Date' data item will be set to the date of the previous day on execution of the Calculation stage
D.
On execution of the Calculation stage, a 'Failed to evaluate expression' Internal Exception will be thrown
Answers
D.
On execution of the Calculation stage, a 'Failed to evaluate expression' Internal Exception will be thrown
Suggested answer: C

Explanation:

Understanding the Process Diagram:

The diagram includes a calculation stage named 'Get Date of Previous Day' and a data item named 'Result Date'.

The Calculation Properties window shows the expression Yesterday() used in the calculation stage.

Analysis of the Calculation Stage:

The Yesterday() function is used to get the date of the previous day.

The result of this function is stored in the 'Result Date' data item.

Data Type Considerations:

Option A: This option is incorrect because there are correct statements regarding the process diagram.

Option B: If 'Result Date' is configured as a Text data type, a 'data type mismatch' Internal Exception will indeed be thrown because the Yesterday() function returns a date, not text.

Option C: If 'Result Date' is configured as a Date data type, the Yesterday() function will correctly set 'Result Date' to the previous day's date.

Option D: This option is incorrect because the Yesterday() function is valid and will not throw a 'Failed to evaluate expression' Internal Exception if used correctly with a date data type.

Conclusion:

The correct statement is:

C . If the 'Result Date' data item is configured as a Date data type, then the 'Result Date' data item will be set to the date of the previous day on execution of the Calculation stage.

Blue Prism Developer Documentation: Date Functions

Blue Prism Training Material on Calculation Stages and Date Manipulation

asked 16/09/2024
Benice dobbins
44 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first