Forum Discussion

RandyThompson's avatar
RandyThompson
New Contributor III
3 days ago
Solved

FinanceCustomCalculate service

Is it possible to run a Finance Custom Calculate Business rule using the Assemblies Service Factory “FinanceCustomCalculate” service. I would like to have a button on a Planning dashboard run a data Management sequence that calls a DM step that runs Custom Calulate Business rule that is stored in a Workspace Assemblies.  This is for a v9.0 environment.

1 Reply

  • JackLacava's avatar
    JackLacava
    Community Manager

    Yes, of course. 

    1. In your assembly ("MyAssembly") create your custom calc service file (e.g. MyCustomCalc.vb)
    2. In the same assembly, create a Service Factory ("MyFactory"), and make sure it will return an instance of MyCustomCalc in the FinanceCustomCalculate case
    3. Enable the service factory by adding it to the Workspace Assembly Service property of your workspace ("MyAssembly.MyFactory")
    4. create you DM Custom Calculate Step and point it to the service factory 
    5. Add the step to a sequence and trigger it the usual way from the button