Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Logic API

  • Logic Nature: eventHook

    • Logic Type: Calculation/Pricing

  • Execution Types:

    • Standard - to perform some calculation and return the decision (if any).

  • Information provided to the logic:

    • Depends on the type of the hook event (see the list of all hook events at HookEventType) for which it is triggered. For event

      • QUOTE_TO_DEAL_PRE

        • Binding variable quote - with the content of the Quote (incl. items), but it has only simple built-in fields and does not contain any information about inputs and outputs (not for header nor for items). So if you need the complete Quote content, you need to read it from the database.

  • Expected logic execution outcome:

    • Depends on the type of the hook event (see the list of all hook events at HookEventType) for which it is triggered. For event

      • QUOTE_TO_DEAL_PRE - The system will use only the result and message from the first logic element. The result must be of type boolean.

        • If the result type is NOT Boolean, the result and message is ignored and the action can continue with execution.

        • TRUE - The action can continue with execution.

        • FALSE - The action is NOT allowed to continue and the message will be used and displayed to the user.

        • exception - The action is NOT allowed to continue and the exception message will be used and displayed to the user.

...