Transaction rules when executed as Business Component

Official Content

When we use business components, 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.

We can specify we 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, we 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.




Was this page helpful?
What Is This?
Your feedback about this content is important. Let us know what you think.