000-349 · Question #51
Which statement about the REJECT function is true?
The correct answer is D. The argument of the REJECT function should be an object to which the RESTART attribute has. The REJECT function requires its argument to be an object that has the RESTART attribute set, which is the prerequisite condition for the function to operate correctly.
Question
Which statement about the REJECT function is true?
Options
- AThe REJECT function can only operate on unidentified foreign objects (UFOs).
- BThe REJECT function returns an object of the same type as its argument.
- CThe REJECT function will not produce any output unless MapSettings->MapAudit Switch is
- DThe argument of the REJECT function should be an object to which the RESTART attribute has
- EUse of the REJECT function forces the map to return a map completed successfully message
How the community answered
(30 responses)- A3% (1)
- B10% (3)
- D83% (25)
- E3% (1)
Why each option
The REJECT function requires its argument to be an object that has the RESTART attribute set, which is the prerequisite condition for the function to operate correctly.
REJECT is not restricted to unidentified foreign objects; it can operate on any object that has the RESTART attribute set.
REJECT does not return an object of the same type as its argument - it causes the object to be rejected or skipped during map processing rather than transforming and returning it.
REJECT does not require the MapAudit switch to be enabled; it performs its rejection operation independently of audit configuration.
The REJECT function is designed to work on objects that have the RESTART attribute assigned; the RESTART attribute marks an object as one that can be restarted during reprocessing, and REJECT depends on this attribute to correctly identify and handle the object within the map run.
REJECT does not force the map to return a 'map completed successfully' message; it handles rejection at the object level within the map execution flow.
Concept tested: REJECT function and RESTART attribute requirement
Source: https://www.ibm.com/docs/en/b2b-integrator/6.1?topic=functions-reject
Topics
Community Discussion
No community discussion yet for this question.