Symantec Access Management

Expand all | Collapse all

ScoringCallout

Jump to Best Answer
  • 1.  ScoringCallout

    Posted 07-18-2018 11:25 AM
      |   view attached

    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);

    scoringResp.setScore(scoringDoc.getScoringCallout().getRiskFortScore().getScore());

     

    If the rule is set to trigger ( =Y ) code is working fine:

    scoringResp.setAnnotation("Y");
    byte ch = 'Y';
    scoringResp.setIsSuccess(ch);

    scoringResp.setScore(30);

     

    === SCORINGHTTPCALLOUT=Y

     

    What is it that I am missing here

     

    Thanks



  • 2.  Re: ScoringCallout
    Best Answer

    Posted 07-26-2018 08:45 PM

    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.