<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: 38823
    $Date: 2024-03-22
    $Revision: 1.0
    $Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
    <bm:operations>
        <bm:operation name="update">
            <bm:update-sql><![CDATA[
                begin
                    hlcm_com_policy_wfl_pkg.policy_wfl_start(
                    p_policy_hd_id =>${@policy_hd_id},
                    p_user_id => ${/session/@user_id}
                    );
                end;
            ]]></bm:update-sql>
        </bm:operation>
        <bm:operation name="query">
            <bm:query-sql>
                select hd.calc_start_date,hd.calc_end_date from hlcm_comsn_policy_hd hd where hd.bp_id=${@bp_id} and hd.division=${@division} and hd.wfl_status in ('APPROVED','APPROVING')
            </bm:query-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
