forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: chenxiaoxiong <chenxiaoxiong@huawei.com> Co-committed-by: chenxiaoxiong <chenxiaoxiong@huawei.com>
199 lines
24 KiB
HTML
199 lines
24 KiB
HTML
<a name="dataartsstudio_01_0498"></a><a name="dataartsstudio_01_0498"></a>
|
|
|
|
<h1 class="topictitle1">Job Embedded Objects</h1>
|
|
<div id="body8662426"><p id="dataartsstudio_01_0498__en-us_topic_0132846497_p8060118">A job object provides properties and methods of obtaining the output message, job scheduling plan time, and job execution time of the previous node in a job.</p>
|
|
<div class="section" id="dataartsstudio_01_0498__en-us_topic_0132846497_section9326172819469"><h4 class="sectiontitle">Properties and Methods</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dataartsstudio_01_0498__en-us_topic_0132846497_table5983152818447" frame="border" border="1" rules="all"><caption><b>Table 1 </b><strong id="dataartsstudio_01_0498__en-us_topic_0132846497_b8423527061659">Property description</strong></caption><thead align="left"><tr id="dataartsstudio_01_0498__en-us_topic_0132846497_row1098352817443"><th align="left" class="cellrowborder" valign="top" width="18.63%" id="mcps1.3.2.2.2.4.1.1"><p id="dataartsstudio_01_0498__en-us_topic_0132846497_p798322834416">Property</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="19.439999999999998%" id="mcps1.3.2.2.2.4.1.2"><p id="dataartsstudio_01_0498__en-us_topic_0132846497_p19832281441">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="61.92999999999999%" id="mcps1.3.2.2.2.4.1.3"><p id="dataartsstudio_01_0498__en-us_topic_0132846497_p179833288448">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="dataartsstudio_01_0498__en-us_topic_0132846497_row498322818449"><td class="cellrowborder" valign="top" width="18.63%" headers="mcps1.3.2.2.2.4.1.1 "><p id="dataartsstudio_01_0498__en-us_topic_0132846497_p5983182814418">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.439999999999998%" headers="mcps1.3.2.2.2.4.1.2 "><p id="dataartsstudio_01_0498__en-us_topic_0132846497_p19983132884416">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="61.92999999999999%" headers="mcps1.3.2.2.2.4.1.3 "><p id="dataartsstudio_01_0498__en-us_topic_0132846497_p6983182804419">Job name.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dataartsstudio_01_0498__en-us_topic_0132846497_row7983132884414"><td class="cellrowborder" valign="top" width="18.63%" headers="mcps1.3.2.2.2.4.1.1 "><p id="dataartsstudio_01_0498__en-us_topic_0132846497_p998392804417">planTime</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.439999999999998%" headers="mcps1.3.2.2.2.4.1.2 "><p id="dataartsstudio_01_0498__en-us_topic_0132846497_p13983122894418">java.util.Date</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="61.92999999999999%" headers="mcps1.3.2.2.2.4.1.3 "><p id="dataartsstudio_01_0498__en-us_topic_0132846497_p0983228164415">Job scheduling plane time, that is, the time configured for periodic scheduling, for example, to schedule a job at 1:01 a.m. every day.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dataartsstudio_01_0498__en-us_topic_0132846497_row7983428164410"><td class="cellrowborder" valign="top" width="18.63%" headers="mcps1.3.2.2.2.4.1.1 "><p id="dataartsstudio_01_0498__en-us_topic_0132846497_p1798310287443">startTime</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.439999999999998%" headers="mcps1.3.2.2.2.4.1.2 "><p id="dataartsstudio_01_0498__en-us_topic_0132846497_p9983828184414">java.util.Date</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="61.92999999999999%" headers="mcps1.3.2.2.2.4.1.3 "><p id="dataartsstudio_01_0498__en-us_topic_0132846497_p19831628184412">Job execution time. It may be the same as or later than the planTime (because the job engine is busy).</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dataartsstudio_01_0498__en-us_topic_0132846497_row1698314282448"><td class="cellrowborder" valign="top" width="18.63%" headers="mcps1.3.2.2.2.4.1.1 "><p id="dataartsstudio_01_0498__en-us_topic_0132846497_p1498313282447">eventData</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.439999999999998%" headers="mcps1.3.2.2.2.4.1.2 "><p id="dataartsstudio_01_0498__en-us_topic_0132846497_p13983182820446">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="61.92999999999999%" headers="mcps1.3.2.2.2.4.1.3 "><p id="dataartsstudio_01_0498__en-us_topic_0132846497_p39837283444">Message obtained from the stream when the event-driven scheduling is used.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dataartsstudio_01_0498__en-us_topic_0132846497_row5983628124410"><td class="cellrowborder" valign="top" width="18.63%" headers="mcps1.3.2.2.2.4.1.1 "><p id="dataartsstudio_01_0498__en-us_topic_0132846497_p698392819446">projectId</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.439999999999998%" headers="mcps1.3.2.2.2.4.1.2 "><p id="dataartsstudio_01_0498__en-us_topic_0132846497_p20983728174411">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="61.92999999999999%" headers="mcps1.3.2.2.2.4.1.3 "><p id="dataartsstudio_01_0498__en-us_topic_0132846497_p1498352874416">ID of the project where the DataArts Factory module is located.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dataartsstudio_01_0498__en-us_topic_0132846497_table14461689017" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Method description</caption><thead align="left"><tr id="dataartsstudio_01_0498__en-us_topic_0132846497_row2446087010"><th align="left" class="cellrowborder" valign="top" width="21.52%" id="mcps1.3.2.3.2.4.1.1"><p id="dataartsstudio_01_0498__en-us_topic_0132846497_p444698004">Method</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="38.97%" id="mcps1.3.2.3.2.4.1.2"><p id="dataartsstudio_01_0498__en-us_topic_0132846497_p14461485016">Description</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="39.51%" id="mcps1.3.2.3.2.4.1.3"><p id="dataartsstudio_01_0498__p174611843131310">Example</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="dataartsstudio_01_0498__en-us_topic_0132846497_row1440191316465"><td class="cellrowborder" valign="top" width="21.52%" headers="mcps1.3.2.3.2.4.1.1 "><p id="dataartsstudio_01_0498__en-us_topic_0132846497_p144411113164610">String getNodeStatus(String nodeName)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="38.97%" headers="mcps1.3.2.3.2.4.1.2 "><p id="dataartsstudio_01_0498__en-us_topic_0132846497_p54411313204616">Obtains the running status of a specified node. If the node runs properly, success is returned. If the node fails to run, fail is returned.</p>
|
|
<p id="dataartsstudio_01_0498__p5944185517125">For example, to check whether a node is running successfully, you can use the following command, where <strong id="dataartsstudio_01_0498__b385515722216">test</strong> indicates the node name:</p>
|
|
<p id="dataartsstudio_01_0498__p5601638111118"><strong id="dataartsstudio_01_0498__b1539912315233">#{(Job.getNodeStatus("test")) == "success" }</strong></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="39.51%" headers="mcps1.3.2.3.2.4.1.3 "><p id="dataartsstudio_01_0498__p1854612377146">Obtains the running status of the test node:</p>
|
|
<p id="dataartsstudio_01_0498__p11461124318132">#{Job.getNodeStatus("test")}</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dataartsstudio_01_0498__en-us_topic_0132846497_row74461885010"><td class="cellrowborder" valign="top" width="21.52%" headers="mcps1.3.2.3.2.4.1.1 "><p id="dataartsstudio_01_0498__en-us_topic_0132846497_p1044611814010">String getNodeOutput(String nodeName)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="38.97%" headers="mcps1.3.2.3.2.4.1.2 "><p id="dataartsstudio_01_0498__en-us_topic_0132846497_p104461088020">Obtains the output of a specified node. This method can only obtain the output of the previous dependent node.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="39.51%" headers="mcps1.3.2.3.2.4.1.3 "><ul id="dataartsstudio_01_0498__ul1846618186203"><li id="dataartsstudio_01_0498__li195472311206">Obtains the output of the test node:<p id="dataartsstudio_01_0498__p196541123172010"><a name="dataartsstudio_01_0498__li195472311206"></a><a name="li195472311206"></a>#{Job.getNodeOutput("test")}</p>
|
|
</li><li id="dataartsstudio_01_0498__li2182216122812">If the previous node has no execution result, the output is null.</li><li id="dataartsstudio_01_0498__li846661813203">If the output of a node is a field, the output result is in the format like <strong id="dataartsstudio_01_0498__b1370115071015">[["000"]]</strong>. In this case, you can use the EL expression to split the string result and obtain the field value output by the previous node. Note that the output result type is string. If you want to output the original data type, you need to use the EL expression of the For Each node and the loop embedded objects supported by the node.<p id="dataartsstudio_01_0498__p38004205209">#{StringUtil.split(StringUtil.split(StringUtil.split(Job.getNodeOutput("Name of the previous node"),"]")[0],"[")[0],"\\"")[0]}</p>
|
|
</li><li id="dataartsstudio_01_0498__li9843713182711">If the output of a node contains two or more fields, the output result is in the format like <strong id="dataartsstudio_01_0498__b165142610152">[["000"],["001"]]</strong>. In this case, you need to obtain the output result using the EL expression of the For Each node and the loop embedded objects supported by the node, for example, <strong id="dataartsstudio_01_0498__b16826129175915">#{Loop.current[0]}</strong>.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="dataartsstudio_01_0498__en-us_topic_0132846497_row1244611818019"><td class="cellrowborder" valign="top" width="21.52%" headers="mcps1.3.2.3.2.4.1.1 "><p id="dataartsstudio_01_0498__en-us_topic_0132846497_p1446581604">String getParam(String key)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="38.97%" headers="mcps1.3.2.3.2.4.1.2 "><p id="dataartsstudio_01_0498__p11150133719402">Obtains job parameters.</p>
|
|
<p id="dataartsstudio_01_0498__p7739747114213">This method only obtains the parameter values configured for the current job, but not parameter values passed from the parent job or the global variables configured for the workspace.</p>
|
|
<p id="dataartsstudio_01_0498__en-us_topic_0132846497_p144462081400">To obtain the parameter values passed from the parent job and the global variables configured for the workspace, you are advised to use the ${job_param_name} expression.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="39.51%" headers="mcps1.3.2.3.2.4.1.3 "><p id="dataartsstudio_01_0498__p10461184361318">Obtains the value of the <strong id="dataartsstudio_01_0498__b1525312489192">test</strong> parameter:</p>
|
|
<p id="dataartsstudio_01_0498__p351915173162">#{Job.getParam("test")}</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dataartsstudio_01_0498__en-us_topic_0132846497_row1344688307"><td class="cellrowborder" valign="top" width="21.52%" headers="mcps1.3.2.3.2.4.1.1 "><p id="dataartsstudio_01_0498__en-us_topic_0132846497_p24461781011">String getPlanTime(String pattern)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="38.97%" headers="mcps1.3.2.3.2.4.1.2 "><p id="dataartsstudio_01_0498__en-us_topic_0132846497_p204461881204">Obtains the plan time character string in a specified pattern. Pattern indicates the date and time mode. For details, see <a href="dataartsstudio_01_0496.html">Date and Time Mode</a>.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="39.51%" headers="mcps1.3.2.3.2.4.1.3 "><p id="dataartsstudio_01_0498__p142797322177">Obtains the planned job scheduling time, which is accurate to millisecond:</p>
|
|
<p id="dataartsstudio_01_0498__p19279163271714">#{Job.getPlanTime("yyyy-MM-dd HH:mm:ss:SSS")}</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dataartsstudio_01_0498__en-us_topic_0132846497_row14461083020"><td class="cellrowborder" valign="top" width="21.52%" headers="mcps1.3.2.3.2.4.1.1 "><p id="dataartsstudio_01_0498__en-us_topic_0132846497_p2446148805">String getYesterday(String pattern)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="38.97%" headers="mcps1.3.2.3.2.4.1.2 "><p id="dataartsstudio_01_0498__en-us_topic_0132846497_p10446383018">Obtains the time character string of the day before the plan time. Pattern indicates the date and time mode. For details, see <a href="dataartsstudio_01_0496.html">Date and Time Mode</a>.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="39.51%" headers="mcps1.3.2.3.2.4.1.3 "><p id="dataartsstudio_01_0498__p8154154321715">Obtains the time on the previous day of the planned job scheduling time, which is accurate to date:</p>
|
|
<p id="dataartsstudio_01_0498__p24438819106">#{Job.getYesterday("yyyy-MM-dd HH:mm:ss:SSS")}</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dataartsstudio_01_0498__en-us_topic_0132846497_row184461381903"><td class="cellrowborder" valign="top" width="21.52%" headers="mcps1.3.2.3.2.4.1.1 "><p id="dataartsstudio_01_0498__en-us_topic_0132846497_p194461688018">String getLastHour(String pattern)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="38.97%" headers="mcps1.3.2.3.2.4.1.2 "><p id="dataartsstudio_01_0498__en-us_topic_0132846497_p11446108105">Obtains the time character string of last hour before the plan time. Pattern indicates the date and time mode. For details, see <a href="dataartsstudio_01_0496.html">Date and Time Mode</a>.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="39.51%" headers="mcps1.3.2.3.2.4.1.3 "><p id="dataartsstudio_01_0498__p4775456102313">Obtains the time one hour before the planned job scheduling time, which is accurate to hour:</p>
|
|
<p id="dataartsstudio_01_0498__p117764562235">#{Job.getLastHour("yyyy-MM-dd HH:mm:ss:SSS")}</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dataartsstudio_01_0498__en-us_topic_0132846497_row39069153012"><td class="cellrowborder" valign="top" width="21.52%" headers="mcps1.3.2.3.2.4.1.1 "><p id="dataartsstudio_01_0498__en-us_topic_0132846497_p1906191510013">String getRunningData(String nodeName)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="38.97%" headers="mcps1.3.2.3.2.4.1.2 "><p id="dataartsstudio_01_0498__p1572415203020">Obtains the data recorded during the running of a specified node. Currently, only the IDs of the jobs running using SQL statements on the DLI SQL node can be obtained. This method can only obtain the output of the previous dependent node.</p>
|
|
<p id="dataartsstudio_01_0498__en-us_topic_0132846497_p99753402494">For example, to obtain the job ID of the third statement on DLI node <strong id="dataartsstudio_01_0498__b1244815491710">DLI_INSERT_DATA</strong>, run the following command: <strong id="dataartsstudio_01_0498__b16482611428">#{JSONUtil.path(Job.getRunningData("DLI_INSERT_DATA"),"jobIds[2]")}</strong>.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="39.51%" headers="mcps1.3.2.3.2.4.1.3 "><p id="dataartsstudio_01_0498__p1378815332912">Obtains the ID of the job run by the third statement in the test of the DLI SQL node:</p>
|
|
<p id="dataartsstudio_01_0498__p87883317292">#{JSONUtil.path(Job.getRunningData("test"),"jobIds[2]")}</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dataartsstudio_01_0498__en-us_topic_0132846497_row1121919124015"><td class="cellrowborder" valign="top" width="21.52%" headers="mcps1.3.2.3.2.4.1.1 "><p id="dataartsstudio_01_0498__en-us_topic_0132846497_p1622018121203">String getInsertJobId(String nodeName)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="38.97%" headers="mcps1.3.2.3.2.4.1.2 "><p id="dataartsstudio_01_0498__en-us_topic_0132846497_p142205128020">Returns the job ID in the first Insert SQL statement of the specified DLI SQL or Transform Load node. If the <strong id="dataartsstudio_01_0498__b13239142162413">nodeName</strong> parameter is not specified, the job ID in the first DLI Insert SQL statement of the DLI SQL node is obtained. If the job ID cannot be obtained, the <strong id="dataartsstudio_01_0498__b18239162122412">null</strong> value is returned.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="39.51%" headers="mcps1.3.2.3.2.4.1.3 "><p id="dataartsstudio_01_0498__p34751747123517">Obtains the ID of job run by the first Insert SQL statement in the test of the DLI SQL node:</p>
|
|
<p id="dataartsstudio_01_0498__p186310513513">#{Job.getInsertJobId("test")}</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dataartsstudio_01_0498__row23334104124"><td class="cellrowborder" valign="top" width="21.52%" headers="mcps1.3.2.3.2.4.1.1 "><p id="dataartsstudio_01_0498__p1390361691311">String getPreviousWorkday(Integer num, String pattern)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="38.97%" headers="mcps1.3.2.3.2.4.1.2 "><p id="dataartsstudio_01_0498__p12334210171215">Returns the time string of the <strong id="dataartsstudio_01_0498__b890134514188">num</strong> working day before a planned time specified by <strong id="dataartsstudio_01_0498__b46391262110">pattern</strong>. The value of <strong id="dataartsstudio_01_0498__b122526255223">num</strong> must be a positive integer. If no result that meets the specified condition is found, null is returned.</p>
|
|
<p id="dataartsstudio_01_0498__p16102172416222">This EL expression is suitable for selecting custom dates in a calendar to schedule jobs.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="39.51%" headers="mcps1.3.2.3.2.4.1.3 "><p id="dataartsstudio_01_0498__p12334131011216">Obtain the date of the fifth working day before a specified job scheduling day.</p>
|
|
<p id="dataartsstudio_01_0498__p121201442916">#{Job.getPreviousWorkday(5, "yyyyMMdd")}</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dataartsstudio_01_0498__row189461132121"><td class="cellrowborder" valign="top" width="21.52%" headers="mcps1.3.2.3.2.4.1.1 "><p id="dataartsstudio_01_0498__p118964399167">String getPreviousNonWorkday(Integer num, String pattern)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="38.97%" headers="mcps1.3.2.3.2.4.1.2 "><p id="dataartsstudio_01_0498__p08058117210">Returns the time string of the <strong id="dataartsstudio_01_0498__b1868161412111">num</strong> non-working day before a planned time specified by <strong id="dataartsstudio_01_0498__b188698141817">pattern</strong>. The value of <strong id="dataartsstudio_01_0498__b5869171413116">num</strong> must be a positive integer. If no result that meets the specified condition is found, null is returned.</p>
|
|
<p id="dataartsstudio_01_0498__p96409191265">This EL expression is suitable for selecting custom dates in a calendar to schedule jobs.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="39.51%" headers="mcps1.3.2.3.2.4.1.3 "><p id="dataartsstudio_01_0498__p87391125133015">Obtains the date of the first non-working day before a specified job scheduling day.</p>
|
|
<p id="dataartsstudio_01_0498__p1573918256308">#{Job.getPreviousNonWorkday(1, "yyyyMMdd")}</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dataartsstudio_01_0498__row473091011338"><td class="cellrowborder" valign="top" width="21.52%" headers="mcps1.3.2.3.2.4.1.1 "><p id="dataartsstudio_01_0498__p20730010183316">String getCalendarPreviousWorkday(String calendarName, Integer num, String pattern)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="38.97%" headers="mcps1.3.2.3.2.4.1.2 "><p id="dataartsstudio_01_0498__p13330757113714">Returns the time string of the <strong id="dataartsstudio_01_0498__b19783535118">num</strong> working day before a planned time in the calendar specified by <strong id="dataartsstudio_01_0498__b1497813518516">pattern</strong>. The value of <strong id="dataartsstudio_01_0498__b189785513516">num</strong> must be a positive integer. If no result that meets the specified condition is found, null is returned.</p>
|
|
<p id="dataartsstudio_01_0498__p433014576373">This EL expression is suitable for selecting custom dates in a calendar to schedule jobs.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="39.51%" headers="mcps1.3.2.3.2.4.1.3 "><p id="dataartsstudio_01_0498__p1035019104442">Obtains the date of the working day five days before the specified planned job scheduling time in the calendar.</p>
|
|
<p id="dataartsstudio_01_0498__p10350101054416">#{Job.getCalendarPreviousWorkday(5, "yyyyMMdd")}</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dataartsstudio_01_0498__row10547151316339"><td class="cellrowborder" valign="top" width="21.52%" headers="mcps1.3.2.3.2.4.1.1 "><p id="dataartsstudio_01_0498__p954712135333">String getCalendarPreviousNonWorkday(String calendarName, Integer num, String pattern)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="38.97%" headers="mcps1.3.2.3.2.4.1.2 "><p id="dataartsstudio_01_0498__p1245992017395">Returns the time string of the <strong id="dataartsstudio_01_0498__b14352812185613">num</strong> non-working day before a planned time in the calendar specified by <strong id="dataartsstudio_01_0498__b9352212125615">pattern</strong>. The value of <strong id="dataartsstudio_01_0498__b7353191215619">num</strong> must be a positive integer. If no result that meets the specified condition is found, null is returned.</p>
|
|
<p id="dataartsstudio_01_0498__p145952053913">This EL expression is suitable for selecting custom dates in a calendar to schedule jobs.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="39.51%" headers="mcps1.3.2.3.2.4.1.3 "><p id="dataartsstudio_01_0498__p1335071011448">Obtains the date of the non-working day one day before the specified planned job scheduling time in the calendar.</p>
|
|
<p id="dataartsstudio_01_0498__p1335001074420">#{Job.getCalendarPreviousNonWorkday(1, "yyyyMMdd")}</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dataartsstudio_01_0498__row4692168331"><td class="cellrowborder" valign="top" width="21.52%" headers="mcps1.3.2.3.2.4.1.1 "><p id="dataartsstudio_01_0498__p14901924103611">String getCalendarNextWorkday(String calendarName, Integer num, String pattern)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="38.97%" headers="mcps1.3.2.3.2.4.1.2 "><p id="dataartsstudio_01_0498__p20202857204015">Returns the time string of the <strong id="dataartsstudio_01_0498__b071153572">num</strong> working day after a planned time in the calendar specified by <strong id="dataartsstudio_01_0498__b137125155717">pattern</strong>. The value of <strong id="dataartsstudio_01_0498__b127555577">num</strong> must be a positive integer. If no result that meets the specified condition is found, null is returned.</p>
|
|
<p id="dataartsstudio_01_0498__p142021457204017">This EL expression is suitable for selecting custom dates in a calendar to schedule jobs.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="39.51%" headers="mcps1.3.2.3.2.4.1.3 "><p id="dataartsstudio_01_0498__p063251315449">Obtains the date of the working day five days after the specified planned job scheduling time in the calendar.</p>
|
|
<p id="dataartsstudio_01_0498__p166321913124414">#{Job.getCalendarNextWorkday(5, "yyyyMMdd")}</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dataartsstudio_01_0498__row09331425183318"><td class="cellrowborder" valign="top" width="21.52%" headers="mcps1.3.2.3.2.4.1.1 "><p id="dataartsstudio_01_0498__p1990182423618">String getCalendarNextNonWorkday(String calendarName, Integer num, String pattern)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="38.97%" headers="mcps1.3.2.3.2.4.1.2 "><p id="dataartsstudio_01_0498__p1931491474312">Returns the time string of the <strong id="dataartsstudio_01_0498__b111724128586">num</strong> non-working day after a planned time in the calendar specified by <strong id="dataartsstudio_01_0498__b11173312105810">pattern</strong>. The value of <strong id="dataartsstudio_01_0498__b12173101245810">num</strong> must be a positive integer. If no result that meets the specified condition is found, null is returned.</p>
|
|
<p id="dataartsstudio_01_0498__p103147145439">This EL expression is suitable for selecting custom dates in a calendar to schedule jobs.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="39.51%" headers="mcps1.3.2.3.2.4.1.3 "><p id="dataartsstudio_01_0498__p36321613134411">Obtains the date of the non-working day one day after the specified planned job scheduling time in the calendar.</p>
|
|
<p id="dataartsstudio_01_0498__p1363261310443">#{Job.getPreviousNonWorkday(1, "yyyyMMdd")}</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="dataartsstudio_01_0498__en-us_topic_0132846497_section1259817279715"><h4 class="sectiontitle">Example 1</h4><p id="dataartsstudio_01_0498__en-us_topic_0132846497_p780092916715">The expression used to obtain the output of node <strong id="dataartsstudio_01_0498__b1964314220203">test</strong> in the job is as follows:</p>
|
|
<pre class="screen" id="dataartsstudio_01_0498__en-us_topic_0132846497_screen153304361288">#{Job.getNodeOutput("test")}</pre>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dataartsstudio_01_0493.html">EL Expression Reference</a></div>
|
|
</div>
|
|
</div>
|
|
|