Valid Comm-Dev-101 Dumps shared by ExamDiscuss.com for Helping Passing Comm-Dev-101 Exam! ExamDiscuss.com now offer the newest Comm-Dev-101 exam dumps, the ExamDiscuss.com Comm-Dev-101 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com Comm-Dev-101 dumps with Test Engine here:
Given a job step configured in the steptype.json that calls a script module, a developer needs to add a custom status code " NO_FILES_FOUND " in the script. The status does not represent an error condition. Which code snippet completes this requirement?
Correct Answer: B
A task-oriented custom job step controls its execution result by returning adw.system.Statusobject. BecauseNO_FILES_FOUNDis explicitlynot an error condition, the status object ' s severity must beStatus. OK, withNO_FILES_FOUNDsupplied as the custom status code. Salesforce ' s custom-job-step documentation states that a task-oriented script module can returndw.system. Statusto control the step ' s exit status. When the Status object ' s error flag is false and its code is a custom value, that custom value becomes the step status and job processing can continue unless the job flow defines a transition for it. Option A returns an arbitrary object rather than a B2C CommerceStatus. Option C similarly returns a plain JavaScript object. Salesforce specifically notes that if a script returns an object that isnotadw.system.Status, the Job Framework treats the execution as ordinaryOK; the custom code isn ' t established through that object. new Status(Status.OK, ' NO_FILES_FOUND ' )is therefore the correct implementation. Study Guide reference:Application Development - Job Framework, custom job steps,steptypes.json,dw. system.Status, custom exit codes, and task-oriented script modules.