Official Content

When you use Business Component, all Transaction rules are executed except:

  • Those that include a user interface (i.e. Customer.call() )
  • Those that are not applicable: 

The following specification message: "SPC0097 Rule <Rule> does not apply to Business Component" appears when the mentioned <Rule> is defined in a Transaction used in an object as Business Component.

You can specify you want to execute certain rules defined in the Transaction, only when it is executed as Business Component by preceding the rule with the qualifier [BC], as the following example shows:

[BC] Default(InvoiceDate, &today);

Or a set of rules like this example:

[BC]
{
     rule1;
     rule2;
     ...
     ruleN;
}

Likewise, you have the qualifier [WEB] to indicate that a rule or set of rules must be executed only if the transaction is running in web environment with its web form, and not when it is executed as Business Component.







Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant