GENERALBYTESCOM / batm_public

BATM Public Repository
www.generalbytes.com
Other
98 stars 241 forks source link

Adding a new Transaction Scoring Provider #910

Closed pedroguima closed 6 months ago

pedroguima commented 6 months ago

Hello,

I’m trying to add a new TransactionScoringProvider to master. I get it instantiated but it doesn’t show up on admin:

This is my ScoringExtension.java


package com.generalbytes.batm.server.extensions.mindthecoin.scoring;
import com.generalbytes.batm.server.extensions.AbstractExtension;
import com.generalbytes.batm.server.extensions.aml.scoring.ITransactionScoringProvider;
import com.generalbytes.batm.server.extensions.aml.scoring.ScoringResult;
import com.generalbytes.batm.server.extensions.IExtension;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.ArrayList;
import java.util.Collection;
import com.generalbytes.batm.server.extensions.IExtensionContext;
//public class ScoringExtension extends AbstractExtension implements ITransactionScoringProvider {
public class ScoringExtension extends AbstractExtension {
    private final Logger log = LoggerFactory.getLogger("batm.master.MTCScoringProvider");
    private static IExtensionContext context;
    public void init(IExtensionContext paramIExtensionContext) {
        context = paramIExtensionContext;
        log.debug("MTC ScoringProvider extension initialized");
    }
    public void deinit() {
    }
    @Override
    public String getName() {
        return "MTCScoring";
    }
    @Override
    public ITransactionScoringProvider createTransactionScoringProvider(String paramString) {
        log.debug("Creating ScoringProvider");
        return new ScoringProvider(paramString);
    }
}

And then I have a ScoringProvider.java that implements your ITransactionScoringProvider interface. On the logs, I can see that it starts up but the new ScoringProvider does not show up:

2024-05-02 15:10:14.799 [/0.0.0.0/Master-start/1] DEBUG batm.master.ExtensionManager - * Extension definitions for MTCScoring from file batm_server_extensions_mtc.jar loaded successfully.
2024-05-02 15:10:14.840 [/0.0.0.0/Master-start/1] DEBUG batm.master.MTCScoringProvider - MTC ScoringProvider extension initialized

My question are:

Best regards

filipocelka commented 6 months ago

Please don't use github to get support. This is not a support web. Please contact support@generalbytes.com

pedroguima commented 6 months ago

@filipocelka in ticket GB-18712 they told me to do exactly the opposite.

How am I supposed to get support??