The Scoring Callout Servlet is returning (SCORINGHTTPCALLOUT=FAILED) as opposed to (SCORINGHTTPCALLOUT=N), is this by design?
Code snippet:scoringResp.setAnnotation("N");byte ch = 'N';scoringResp.setIsSuccess(ch);
If the rule is set to trigger ( =Y ) code is working fine:
scoringResp.setAnnotation("Y");byte ch = 'Y';scoringResp.setIsSuccess(ch);
What is it that I am missing here
I think what you are noticing is the correct behavior by design. The scoring callout is designed to provide the Scoring capability.
scoringResp.setIsSuccess(ch); should be set to "Y" is scoring callout business logic is executing properly for positive or negative conditions.
Based on business need you should set different score and Annotation.