After & BeforeProcessChange not triggering

What could be the reason why BeforeProcessChange & AfterProcessChange are not called by RO/DA?

I have C# .NET code with a framework to trigger business rules

This works fine for all the daschemas in a certain RO service

I now created a second service and the AfterProcessDelta function which I also hook triggers as expected but nothing triggers BeforeProcessChange & AfterProcessChange

What are the requirements for this to trigger?

I create the BusinessProcessor objects programmatically

I pass an IContainer member data of the service (named components) in the constructor of the BP and I set the ReferencedDataTable property

I hook 3 events but only 1 triggers

The code is identical to what happens in another service.

How can I debug/figure out why this does not work?

Hi,

why you can’t just modify autogenerated BP in DataService.AfterAutoCreateBusinessProcessor event?

I like having nice separate source files for each business rule

There is also some additional logic in these rules

FYI: Some additional info on the service

Hi,

If AfterProcessDelta is called but BeforeProcessChange/AfterProcessChange are not, then the change never reached the loop.

Either the delta is empty, or the change was rejected earlier by a Schema Update Rule.

Could you add this code to BpRekening_AfterProcessDelta and see what it outputs?

Console.WriteLine("delta " + e.Delta.Name + ": " + e.Delta.Count + " change(s)");
for (int i = 0; i < e.Delta.Count; i++)
{
    var c = e.Delta[i];
    Console.WriteLine("   " + c.Type + " / " + c.Status + " / " + c.Message);
}

Hi,

The output is 0 deltas: “delta Rekening: 0 change(s)”

Meanwhile I found the reason why this is and the cause is in my code.

You can disregard my request here, sorry for the inconvenience