InterPlay 2.3.0 User Guide ControlFunction exit You use the ControlFunction exit when you need to perform a control on a property value. The ControlFunction performs only controls on property values so it is a function with no side effect. Changes to property values are not kept. The Control Functions can be added to the following function calls. Function Call When CheckMassUpdate Before CheckValue - CopyObject Before After DuplicateObject Before After ImportCollection Before After ImportObject - - ChangeProperty - MoveObject Before After CreateCollection Before CreateObject Before After SaveCollection Before After SaveObject Before After public interface ControlFunction { public List<BusinessError> control( BusinessEntity targetObject, ErrorFactory errorFactory, SourceDatabaseExternal sourceExternal, Map<String, Object> functionArguments ) Argument Contents targetObject BusinessCollection, BusinessObject or Sub-Element depending on the entity that triggered the exit. errorFactory Utility object to simplify the creation of the list of errors. sourceExternal Utility that enables access to the content of the Collection. functionArguments Function arguments contains different variables depending on the operation that triggered the ControlFunction. The method returns the list of business errors that can occur during exit execution. Related topics Executing a rule-based function Highlighting Rule Editor errors About exit arguments Using Datasources in exits Related Links
ControlFunction exit You use the ControlFunction exit when you need to perform a control on a property value. The ControlFunction performs only controls on property values so it is a function with no side effect. Changes to property values are not kept. The Control Functions can be added to the following function calls. Function Call When CheckMassUpdate Before CheckValue - CopyObject Before After DuplicateObject Before After ImportCollection Before After ImportObject - - ChangeProperty - MoveObject Before After CreateCollection Before CreateObject Before After SaveCollection Before After SaveObject Before After public interface ControlFunction { public List<BusinessError> control( BusinessEntity targetObject, ErrorFactory errorFactory, SourceDatabaseExternal sourceExternal, Map<String, Object> functionArguments ) Argument Contents targetObject BusinessCollection, BusinessObject or Sub-Element depending on the entity that triggered the exit. errorFactory Utility object to simplify the creation of the list of errors. sourceExternal Utility that enables access to the content of the Collection. functionArguments Function arguments contains different variables depending on the operation that triggered the ControlFunction. The method returns the list of business errors that can occur during exit execution. Related topics Executing a rule-based function Highlighting Rule Editor errors About exit arguments Using Datasources in exits