Skip to Content
avatar image
Former Member

SAP HCP Gamification: DROOLS

Hi,

I am working on defining some gamification rules and want to use the below for doing this. I want to pass the points to the player

boolean givePointsToPlayer(String playerId, String pointType, double amount, String notificationMessage)

For example:

$event : EventObject(type=='Sale', $points:points, $playerid:playerid) from entry-point eventstream

updateAPIv1.givePointsToPlayer($playerid, 'Points', $points, 'Points Awarded'); update(engine.getPlayerById($playerid));

This does not work however. I get the errors

"Unable to create Field Extractor for 'score'Field/method 'score' not found for class "'com.sap.gamification.model.EventObject'

"Rule Compilation error $score cannot be resolved"

Any ideas why this is? How can I achieve what I would like to do? Thanks.

Add comment
10|10000 characters needed characters exceeded

  • Former Member

    Sorry this should say:

    Unable to create Field Extractor for 'score'Field/method 'point' not found for class "'com.sap.gamification.model.EventObject'

    "Rule Compilation error $points cannot be resolved"

  • Get RSS Feed

0 Answers