Get a hold of the connection in a TDABusinessProcessorRules event

i want to invoke a schema update inside for example the afterinsert event of a businessprocessorrule
like:
procedure TProductDetailServerRules.AfterProcessChange(
Sender: TDABusinessProcessor; aChange: TDADeltaChange;
Processed: Boolean; var CanRemoveFromDelta: Boolean)

we now have an altered uDABusinessProcessor.pas in which we keep track of the connection (so added a prop for that)
so we are able to use the connection inside the event:
Connection:=Sender.CurrentConnection;
lCommand := DASchema.NewCommand(Connection, ‘dosomething’);
lCommand.RefreshParams;
lCommand.ParamByName(‘myparam’).AsInteger := myinteger;
lCommand.Execute;

so is there a way to archieve the same without the need to have a patched unit for that?

tia,
marc

Hi,

TDABusinessProcessor class has

    property Service: TRORemoteDataModule read fService write fService;

so you can easily cast it to TDataAbstractService and get default Connection

ok gonna see what that gives thx