Skip to Content
0

SAP HCP Gamification: DROOLS

Nov 13, 2016 at 11:43 AM

80

avatar image
Former Member

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.

10 |10000 characters needed characters left 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"

0
* Please Login or Register to Answer, Follow or Comment.

0 Answers