Docs‎ > ‎CA Live API Creator‎ > ‎Rules‎ > ‎

System Methods

System Methods are pre-supplied methods identified by a leading SysLogic.  For example, the following invokes the System Method allocate, supplying its second parameter with the system method FindWhere:


if (logicContext.verb == "INSERT") {
    SysLogic.allocateFromToUndisbursed(
        logicContext,
        SysLogic.findWhere(
            row.paymentCustomer.ordersList,
            "row.amount_un_paid > 0",
            "placed_date a"),
        "payment_order_allocations",
        "amount_un_disbursed");
}

Link to Javadoc for com.kahuna.logic.lib.system.SysLogicDoc