calc_approval_date.lwm 697 Bytes
Newer Older
Spencer Chang's avatar
Spencer Chang committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: chenlingfeng  
    $Date: 2018-1-17 下午3:23:36  
    $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
  -- Call the function
  ${@approval_date} := to_char(calc_duedate(p_date => sysdate,
                          p_day_num => ${@day_num}),'YYYY-MM-DD');
end;
]]></bm:update-sql>
            <bm:parameters>
                <bm:parameter name="approval_date" output="true" outputPath="@approval_date"/>
            </bm:parameters>
        </bm:operation>
    </bm:operations>
</bm:model>