Here goes. Hope you like it. I did it the most straightforward way,
i.e no need to register the decision service, for instance - one can
just instanciate it and pass it the this participant.
And just for the records, here's a sample usage:
Map decisionServiceCfg =
Collections.singletonMap("tableUrlPrefix", pathToTablesDirectory);
SimpleDecisionService decisionService = new SimpleDecisionService();
decisionService.init("decisionService",
engine.getContext(), decisionServiceCfg);
EmbeddedDecisionParticipant decisionParticipant = new
EmbeddedDecisionParticipant("decide-.*", decisionService,
engine.getContext(), null, "decide-");
engine.registerParticipant(decisionParticipant);
Where any participant whose name starts with decide- will be using the
decision service.
Cheers,
g
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "OpenWFE
users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/openwfe-users?hl=en
-~----------~----~----~----~------~----~------~--~---