A flow can be private and public. A private flow means that this flow can only be called within the flow class where the flow is located. A public flow can also be called from other flow classes. This way, the visibility of a flow can be controlled.
A static flow means that the flow can also be called independently, without creating a flow class with the generated Delphi code. In the example below, this flow is invoked as static:
TestProject.Suppliers.Invoices.DeleteCustomer(Customer);
If the flow is not static, the flow class must be created as well:
var Invoices := TestProject.Suppliers.Invoices.TInvoices.Create;
try
Invoices.DeleteCustomer(Customer);
finally
Invoices.Free;
end;
Use static flows for business logic that does not depend on the state of the flow class. For example; if you have a flow to send messages to customers, where the customers are collected and stored in a flow class variable, don't use the static flag.