(OFBIZ-10371) Thanks Scott for the review git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1830294 13f79535-47bb-0310-9956-ffa450edef68
230 lines
15 KiB
XML
230 lines
15 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
or more contributor license agreements. See the NOTICE file
|
|
distributed with this work for additional information
|
|
regarding copyright ownership. The ASF licenses this file
|
|
to you under the Apache License, Version 2.0 (the
|
|
"License"); you may not use this file except in compliance
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
software distributed under the License is distributed on an
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, either express or implied. See the License for the
|
|
specific language governing permissions and limitations
|
|
under the License.
|
|
-->
|
|
|
|
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xmlns="http://ofbiz.apache.org/Widget-Form" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Form http://ofbiz.apache.org/dtds/widget-form.xsd">
|
|
|
|
<form name="ScheduleJob" type="single" target="setServiceParameters"
|
|
header-row-style="header-row" default-table-style="basic-table">
|
|
<field name="JOB_NAME" title="${uiLabelMap.WebtoolsJob}"><text/></field>
|
|
<field name="SERVICE_NAME" title="${uiLabelMap.WebtoolsService}"><text/></field>
|
|
<field name="POOL_NAME" title="${uiLabelMap.WebtoolsPool}"><text/></field>
|
|
<field name="SERVICE_TIME" title="${uiLabelMap.CommonStartDateTime}"><date-time/></field>
|
|
<field name="SERVICE_END_TIME" title="${uiLabelMap.CommonEndDateTime}"><date-time/></field>
|
|
<field name="SERVICE_FREQUENCY" title="${uiLabelMap.WebtoolsFrequency}">
|
|
<drop-down>
|
|
<option key="" description="${uiLabelMap.CommonNone}"/>
|
|
<option key="4" description="${uiLabelMap.CommonDaily}"/>
|
|
<option key="5" description="${uiLabelMap.CommonWeekly}"/>
|
|
<option key="6" description="${uiLabelMap.CommonMonthly}"/>
|
|
<option key="7" description="${uiLabelMap.CommonYearly}"/>
|
|
<option key="3" description="${uiLabelMap.CommonHourly}"/>
|
|
<option key="2" description="${uiLabelMap.CommonMinutely}"/>
|
|
<option key="1" description="${uiLabelMap.CommonSecondly}"/>
|
|
</drop-down>
|
|
</field>
|
|
<field name="SERVICE_INTERVAL" title="${uiLabelMap.WebtoolsInterval}" tooltip="${uiLabelMap.WebtoolsForUseWithFrequency}"><text/></field>
|
|
<field name="SERVICE_COUNT" title="${uiLabelMap.WebtoolsCount}" tooltip="${uiLabelMap.WebtoolsNumberOfTimeTheJobWillRun}"><text default-value="1"/></field>
|
|
<field name="SERVICE_MAXRETRY" title="${uiLabelMap.WebtoolsMaxRetry}" tooltip="${uiLabelMap.WebtoolsNumberOfJobRetry}"><text default-value="0"/></field>
|
|
<field name="submitButton" title="${uiLabelMap.CommonSubmit}"><submit button-type="button"/></field>
|
|
</form>
|
|
|
|
<form name="RunService" type="single" target="setSyncServiceParameters"
|
|
header-row-style="header-row" default-table-style="basic-table" focus-field-name="SERVICE_NAME">
|
|
<field name="SERVICE_NAME" title="${uiLabelMap.WebtoolsService}"><text/></field>
|
|
<field name="POOL_NAME" title="${uiLabelMap.WebtoolsPool}"><text/></field>
|
|
<field name="_RUN_SYNC_"><hidden value="Y"/></field>
|
|
<field name="submitButton" title="${uiLabelMap.CommonSubmit}"><submit button-type="button"/></field>
|
|
</form>
|
|
|
|
<form name="FindJobs" type="single" target="FindJob" default-entity-name="JobSandbox">
|
|
<field name="noConditionFind" position="1"><hidden value="Y"/><!-- if this isn't there then with all fields empty no query will be done --></field>
|
|
<field name="jobName" title="${uiLabelMap.WebtoolsJob}" position="1"><text-find/></field>
|
|
<field name="clock" position="2" title="${uiLabelMap.CommonServerHour}:"><display/></field>
|
|
<field name="jobId" title="${uiLabelMap.CommonId}" position="1"><text-find/></field>
|
|
<field name="serviceName" title="${uiLabelMap.WebtoolsServiceName}"><text-find/></field>
|
|
<field name="statusId" title="${uiLabelMap.CommonStatus}" position="1">
|
|
<drop-down allow-empty="true">
|
|
<entity-options key-field-name="statusId" entity-name="StatusItem">
|
|
<entity-constraint name="statusTypeId" operator="equals" value="SERVICE_STATUS"/>
|
|
<entity-order-by field-name="description"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field name="submitButton" title="${uiLabelMap.CommonFind}" position="1">
|
|
<submit button-type="button"/>
|
|
</field>
|
|
</form>
|
|
|
|
<form name="ListJobs" type="list" list-name="listIt" paginate-target="FindJob" default-entity-name="JobSandbox" separate-columns="true"
|
|
odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
|
|
<actions>
|
|
<service service-name="performFind" result-map="result" result-map-list="listIt">
|
|
<field-map field-name="inputFields" from-field="jobCtx"/>
|
|
<field-map field-name="entityName" value="JobSandbox"/>
|
|
<field-map field-name="orderBy" from-field="parameters.sortField"/>
|
|
<field-map field-name="viewIndex" from-field="viewIndex"/>
|
|
<field-map field-name="viewSize" from-field="viewSize"/>
|
|
</service>
|
|
</actions>
|
|
<field name="jobName" title="${uiLabelMap.WebtoolsJob}" sort-field="true"><display/></field>
|
|
<field name="jobId" title="${uiLabelMap.CommonId}" sort-field="true">
|
|
<hyperlink description="${jobId}" target="JobDetails" also-hidden="false">
|
|
<parameter param-name="jobId" from-field="jobId"/>
|
|
</hyperlink>
|
|
</field>
|
|
<field name="poolId" title="${uiLabelMap.WebtoolsPool}" sort-field="true"><display/></field>
|
|
<field name="runTime" title="${uiLabelMap.WebtoolsRunTime}" sort-field="true"><display/></field>
|
|
<field name="startDateTime" title="${uiLabelMap.CommonStartDateTime}" sort-field="true"><display/></field>
|
|
<field name="serviceName" title="${uiLabelMap.WebtoolsService}" sort-field="true">
|
|
<hyperlink description="${serviceName}" target="ServiceList" also-hidden="false">
|
|
<parameter param-name="sel_service_name" from-field="serviceName"/>
|
|
</hyperlink>
|
|
</field>
|
|
<field name="statusId" title="${uiLabelMap.CommonStatus}" sort-field="true"><display-entity entity-name="StatusItem"/></field>
|
|
<field name="finishDateTime" title="${uiLabelMap.CommonEndDateTime}" sort-field="true"><display/></field>
|
|
<field name="cancelButton" title=" " use-when="startDateTime==null&&finishDateTime==null&&cancelDateTime==null" widget-style="buttontext">
|
|
<hyperlink description="${uiLabelMap.WebtoolsCancelJob}" target="cancelJob" also-hidden="false">
|
|
<parameter param-name="jobId"/>
|
|
</hyperlink>
|
|
</field>
|
|
</form>
|
|
<form name="JobDetails" type="single">
|
|
<auto-fields-entity entity-name="JobSandbox" map-name="job" default-field-type="display"/>
|
|
</form>
|
|
<form name="JobRuntimeDataInfo" type="list" list-name="runtimeInfoList" default-table-style="basic-table hover-bar" paginate="false">
|
|
<field name="key"><display/></field>
|
|
<field name="value"><display/></field>
|
|
</form>
|
|
<form name="PoolState" type="single" default-map-name="poolState">
|
|
<field name="keepAliveTimeInSeconds"><display/></field>
|
|
<field name="numberOfCoreInvokerThreads"><display/></field>
|
|
<field name="currentNumberOfInvokerThreads"><display/></field>
|
|
<field name="numberOfActiveInvokerThreads"><display/></field>
|
|
<field name="maxNumberOfInvokerThreads"><display/></field>
|
|
<field name="greatestNumberOfInvokerThreads"><display/></field>
|
|
<field name="numberOfCompletedTasks"><display/></field>
|
|
</form>
|
|
<form name="ListJavaThread" type="list" list-name="threads" paginate-target="threadList" separate-columns="true"
|
|
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
|
|
<field name="id" title="${uiLabelMap.WebtoolsThread}"><display description="${threadId} ${threadName}"/></field>
|
|
<field name="name" title="${uiLabelMap.WebtoolsJob}"><display default-value="${uiLabelMap.CommonNone}"/></field>
|
|
<field name="serviceName" title="${uiLabelMap.WebtoolsService}"><display default-value="${uiLabelMap.CommonNone}"/></field>
|
|
<field name="time" title="${uiLabelMap.CommonStartDateTime}"><display/></field>
|
|
<field name="runTime" title="${uiLabelMap.CommonTime} (ms)"><display/></field>
|
|
</form>
|
|
<form name="ListServices" type="list" list-name="services" paginate-target="ServiceLog" separate-columns="true"
|
|
odd-row-style="alternate-row" default-table-style="basic-table hover-bar" header-row-style="header-row-2">
|
|
<field name="serviceName" title="${uiLabelMap.WebtoolsServiceName}" sort-field="true"><display/></field>
|
|
<field name="localName" title="${uiLabelMap.WebtoolsDispatcherName}" sort-field="true"><display/></field>
|
|
<field name="modeStr" title="${uiLabelMap.WebtoolsMode}" sort-field="true"><display default-value="${uiLabelMap.CommonNone}"/></field>
|
|
<field name="startTime" title="${uiLabelMap.CommonStartDateTime}" sort-field="true"><display/></field>
|
|
<field name="endTime" title="${uiLabelMap.CommonEndDateTime}" sort-field="true"><display default-value="${uiLabelMap.WebtoolsStatusRunning}"/></field>
|
|
</form>
|
|
<form name="FindJobManagerLock" type="single" target="FindJobManagerLock" default-entity-name="JobManagerLock">
|
|
<field name="noConditionFind"><hidden value="Y"/><!-- if this isn't there then with all fields empty no query will be done --></field>
|
|
<field name="instanceId">
|
|
<drop-down allow-empty="true">
|
|
<entity-options entity-name="Enumeration" key-field-name="enumCode" description="${enumCode} - ${description}">
|
|
<entity-constraint name="enumTypeId" value="JM_OFBIZ_INSTANCE"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field name="fromDate"><date-find/></field>
|
|
<field name="thruDate"><date-find/></field>
|
|
<field name="reasonEnumId" title="${uiLabelMap.CommonReason}">
|
|
<drop-down allow-empty="true">
|
|
<entity-options entity-name="Enumeration" key-field-name="enumId" description="[${enumCode}] - ${description}">
|
|
<entity-constraint name="enumTypeId" value="JS_LOCK_REASON"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field name="searchButton"><submit/></field>
|
|
</form>
|
|
<form name="ListJobManagerLock" type="list" list-name="listIt" paginate-target="FindJobManagerLock" default-entity-name="JobManagerLock" separate-columns="true"
|
|
odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
|
|
<actions>
|
|
<service service-name="performFind" result-map="result" result-map-list="listIt">
|
|
<field-map field-name="inputFields" from-field="parameters"/>
|
|
<field-map field-name="entityName" value="JobManagerLock"/>
|
|
<field-map field-name="orderBy" from-field="parameters.sortField"/>
|
|
</service>
|
|
</actions>
|
|
<row-actions>
|
|
<set field="editable" value="${groovy: security.hasPermission('SERVICE_JM_LOCK', userLogin) }" type="Boolean"/>
|
|
<set field="cancelable" value="${groovy: thruDate == null || thruDate.compareTo(nowTimestamp) > 0}" type="Boolean"/>
|
|
</row-actions>
|
|
<field name="instanceId" sort-field="true"><display/></field>
|
|
<field name="fromDate" sort-field="true"><display/></field>
|
|
<field name="thruDate" sort-field="true"><display/></field>
|
|
<field name="createdDate" sort-field="true"><display/></field>
|
|
<field name="createdByUserLogin" sort-field="true"><display/></field>
|
|
<field name="reasonEnumId" sort-field="true" title="${uiLabelMap.CommonReason}"><display-entity entity-name="Enumeration" key-field-name="enumId" description="[${enumCode}] ${description}"/></field>
|
|
<field name="comments"><display/></field>
|
|
<field name="cancelButton" title=" " use-when="editable && cancelable" widget-style="buttontext">
|
|
<hyperlink description="${uiLabelMap.CommonCancel}" target="updateJobManagerLock" also-hidden="false">
|
|
<parameter param-name="instanceId"/>
|
|
<parameter param-name="fromDate"/>
|
|
<parameter param-name="thruDate" value="${nowTimestamp}"/>
|
|
</hyperlink>
|
|
</field>
|
|
</form>
|
|
<form name="AddJobManagerLock" type="single" target="createJobManagerLock" default-entity-name="JobManagerLock">
|
|
<field name="instanceId">
|
|
<drop-down>
|
|
<entity-options entity-name="Enumeration" key-field-name="enumCode" description="${enumCode} - ${description}">
|
|
<entity-constraint name="enumTypeId" value="JM_OFBIZ_INSTANCE"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field name="fromDate"><date-time/></field>
|
|
<field name="thruDate"><date-time/></field>
|
|
<field name="reasonEnumId" title="${uiLabelMap.CommonReason}">
|
|
<drop-down allow-empty="true">
|
|
<entity-options entity-name="Enumeration" key-field-name="enumId" description="[${enumCode}] - ${description}">
|
|
<entity-constraint name="enumTypeId" value="JS_LOCK_REASON"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field name="comments"><text/></field>
|
|
<field name="addButton"><submit/></field>
|
|
<on-event-update-area area-target="FindJobManagerLock" event-type="submit" area-id="window"/>
|
|
</form>
|
|
<grid name="JobManagerLockEnable" list-name="jobManagerLocks"
|
|
odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
|
|
<row-actions>
|
|
<set field="editable" value="${groovy: security.hasPermission('SERVICE_JM_LOCK', userLogin) }" type="Boolean"/>
|
|
<set field="cancelable" value="${groovy: thruDate == null || thruDate.compareTo(nowTimestamp) > 0}" type="Boolean"/>
|
|
</row-actions>
|
|
<field name="instanceId"><display/></field>
|
|
<field name="fromDate" title="${uiLabelMap.CommonFrom}" red-when="never"><display type="date-time"/></field>
|
|
<field name="thruDate" title="${uiLabelMap.CommonThru}" red-when="never"><display type="date-time"/></field>
|
|
<field name="createdByUserLogin" title="${uiLabelMap.CommonBy}"><display/></field>
|
|
<field name="reasonEnumId" title="${uiLabelMap.CommonReason}"><display-entity entity-name="Enumeration" key-field-name="enumId" description="[${enumCode}] ${description}"/></field>
|
|
<field name="cancelButton" title=" " use-when="editable && cancelable" widget-style="buttontext">
|
|
<hyperlink description="${uiLabelMap.CommonCancel}" target="updateJobManagerLock" also-hidden="false">
|
|
<parameter param-name="instanceId"/>
|
|
<parameter param-name="fromDate"/>
|
|
<parameter param-name="thruDate" value="${nowTimestamp}"/>
|
|
</hyperlink>
|
|
</field>
|
|
</grid>
|
|
</forms>
|