Removed old webtools workflow engine pages from webtools to a skeleton (non-functional) webapp in the specialpurpose/workflow component

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@757689 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
David E. Jones
2009-03-24 08:52:49 +00:00
parent fc1111fea8
commit 60aa2383fb
6 changed files with 521 additions and 0 deletions
+141
View File
@@ -0,0 +1,141 @@
<?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.
-->
<resource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<property key="WorkflowWorkflowEngineTools">
<value xml:lang="en">Workflow Engine Tools</value>
<value xml:lang="fr">Outils du moteur de Workflow</value>
<value xml:lang="it">Strumenti per Engine Flussi di Lavoro</value>
<value xml:lang="ro">Instrumente pentru Engine Fluxuri de Lucru</value>
<value xml:lang="th">เครื่องมือ Workflow Engine</value>
<value xml:lang="zh">工作流引擎工具</value>
</property>
<property key="WorkflowReadXPDLFile">
<value xml:lang="en">Read XPDL File</value>
<value xml:lang="fr">Lire le fichier XPDL</value>
<value xml:lang="it">Leggi File XPDL</value>
<value xml:lang="ro">Citeste File XPDL</value>
<value xml:lang="th">อ่านไฟล์ XPDL</value>
<value xml:lang="zh">读取XPDL文件</value>
</property>
<property key="WorkflowWorkflowActivityId">
<value xml:lang="en">Activity ID</value>
<value xml:lang="fr">Réf. d'activité</value>
<value xml:lang="it">Attività</value>
<value xml:lang="th">รหัสการทำงาน</value>
</property>
<property key="WorkflowWorkflowActivityListFor">
<value xml:lang="en">Activity list for</value>
<value xml:lang="fr">Liste d'activité pour</value>
<value xml:lang="it">Lista Actività per</value>
<value xml:lang="th">รายการทำงานสำหรับ</value>
</property>
<property key="WorkflowWorkflowActualCompleteDate">
<value xml:lang="en">Actual Complete Date</value>
<value xml:lang="fr">Date réelle de fin</value>
<value xml:lang="it">Data Fine Attuale</value>
<value xml:lang="th">วันที่เสร็จจริง</value>
</property>
<property key="WorkflowWorkflowAssignments">
<value xml:lang="en">Assignation(s)</value>
<value xml:lang="fr">Tâche (s)</value>
<value xml:lang="it">Assegnato(i)</value>
<value xml:lang="th">งานที่ได้รับมอบหมาย</value>
</property>
<property key="WorkflowWorkflowCurrentStatus">
<value xml:lang="en">Current Status</value>
<value xml:lang="fr">Statut "Current"</value>
<value xml:lang="it">Stato attuale</value>
<value xml:lang="th">สถานะทั่ว ๆ ไป</value>
</property>
<property key="WorkflowWorkflowMonitor">
<value xml:lang="en">Workflow Monitor</value>
<value xml:lang="fr">Moniteur de Workflow</value>
<value xml:lang="it">Monitor dei Flussi di Lavoro</value>
<value xml:lang="ro">Monitorul Fluxurilor de Lucru</value>
<value xml:lang="th">Workflow Monitor</value>
<value xml:lang="zh">工作流监控程序</value>
</property>
<property key="WorkflowWorkflowPackageVersion">
<value xml:lang="en">Package/Version</value>
<value xml:lang="fr">Package/Version</value>
<value xml:lang="it">Pacchetto/Versione</value>
<value xml:lang="th">แพ็คเกจ/เวอร์ชั่น</value>
</property>
<property key="WorkflowWorkflowPageDescription">
<value xml:lang="en">This page is used to view the status of running workflows.</value>
<value xml:lang="fr">Cette page est utilisée pour voir le statut du déroulement des opérations du workflow</value>
<value xml:lang="it">Questa pagina è usata per mostrare lo stato del flussi di lavoro in esecuzione.</value>
<value xml:lang="th">หน้านี้ใช้ตรวจสอบค่าสถานะของการดำเนินงานโครงสร้าง</value>
</property>
<property key="WorkflowWorkflowProcessVersion">
<value xml:lang="en">Process/Version</value>
<value xml:lang="fr">Processus/Version</value>
<value xml:lang="it">Processo/Versione</value>
<value xml:lang="th">โปรเซส/เวอร์ชั่น</value>
</property>
<property key="WorkflowWorkflowSourceReferenceId">
<value xml:lang="en">Source Reference ID</value>
<value xml:lang="fr">Réf. de référence de source</value>
<value xml:lang="it">Riferimento Origine</value>
<value xml:lang="th">รหัสอ้างอิงที่มา</value>
</property>
<property key="WorkflowWorkflows">
<value xml:lang="en">Workflows</value>
<value xml:lang="fr">Workflows</value>
<value xml:lang="it">Flussi di Lavoro</value>
<value xml:lang="th">ขั้นตอนการทำงาน</value>
</property>
<property key="WorkflowImportUpdateToDB">
<value xml:lang="en">Import/Update to DB?</value>
<value xml:lang="fr">Import/ Mise à jour vers DB ?</value>
<value xml:lang="it">Importa/Aggiorna sul DB?</value>
<value xml:lang="th">นำเข้า/เปลี่ยนแปลง ฐานข้อมูล?</value>
</property>
<property key="WorkflowImportXPDLPageDescription">
<value xml:lang="en">This page is used to read and import XPDL files into the workflow process repository.</value>
<value xml:lang="fr">Cette page est utilisée pour lire et importer des fichiers XPDL dans le dépôt de processus du workflow.</value>
<value xml:lang="it">Questa pagina è usata per leggere e importare files XPDL nel repository processi flussi di lavoro.</value>
<value xml:lang="th">หน้านี้ใช้อ่านและนำเข้าไฟล์ XPDL เข้าสู่ที่เก็บขั้นตอนการทำงาน</value>
</property>
<property key="WorkflowXpdlFilenameOrUrl">
<value xml:lang="en">XPDL Filename or URL</value>
<value xml:lang="fr">Nom de fichier XPDL ou URL</value>
<value xml:lang="it">Nome file XPDL o URL</value>
<value xml:lang="th">ชื่อไฟล์ XPDL หรือ URL</value>
</property>
<property key="WorkflowPermissionWorkflow">
<value xml:lang="en">You do not have permission to use this page (WORKFLOW_MAINT needed)</value>
<value xml:lang="fr">Vous n'avez pas l'autorisation d'utiliser cette page (WORKFLOW_MAINT est nécessaire)</value>
<value xml:lang="it">Tu non hai il permesso di usare questa pagina (necessario WORKFLOW_MAINT)</value>
<value xml:lang="th">คุณไม่ได้รับอนุญาตให้ใช้งานในหน้านี้ (WORKFLOW_MAINT ที่ต้องการ)</value>
</property>
<property key="WorkflowActiveWorkflowMonitor">
<value xml:lang="en">Active Workflow Monitor</value>
<value xml:lang="fr">Moniteur actif du Workflow</value>
<value xml:lang="it">Monitor Flussi di Lavoro Attivi</value>
<value xml:lang="th">ตรวจสอบขั้นตอนการทำงาน</value>
</property>
<property key="WorkflowNoStepsFoundForRunningWorkflow">
<value xml:lang="en">No steps found for running workflow process: ${workflow}</value>
<value xml:lang="fr">Aucune étape trouvée pour exécuter une opération de workflow: ${workflow}</value>
<value xml:lang="it">Nessun passo trovato per l'esecuzione del processo flusso di lavoro: ${workflow}</value>
<value xml:lang="th">ไม่พบขั้นตอนการดำเนินงาน: ${workflow}</value>
</property>
</resource>
@@ -0,0 +1,57 @@
<?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.
-->
<site-conf xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/site-conf.xsd">
<include location="component://common/webcommon/WEB-INF/common-controller.xml"/>
<include location="component://common/webcommon/WEB-INF/tempexpr-controller.xml"/>
<description>Workflow Site Configuration File</description>
<owner>Copyright 2001-2009 The Apache Software Foundation</owner>
<!-- Events to run on every request before security (chains exempt) -->
<!--
<preprocessor>
</preprocessor>
-->
<!-- Events to run on every request after all other processing (chains exempt) -->
<!--
<postprocessor>
<event type="java" path="org.ofbiz.webapp.event.TestEvent" invoke="test"/>
</postprocessor>
-->
<!-- Request Mappings -->
<!-- Old Workflow Engine Requests -->
<request-map uri="readxpdl">
<security https="true" auth="true"/>
<response name="success" type="view" value="readxpdl"/>
</request-map>
<request-map uri="workflowMonitor">
<security https="true" auth="true"/>
<response name="success" type="view" value="workflowMonitor"/>
</request-map>
<!-- end of request mappings -->
<!-- View Mappings -->
<view-map name="readxpdl" type="screen" page="component://webtools/widget/MiscScreens.xml#readxpdl"/>
<view-map name="workflowMonitor" type="screen" page="component://webtools/widget/MiscScreens.xml#workflowMonitor"/>
<!-- end of view mappings -->
</site-conf>
+64
View File
@@ -0,0 +1,64 @@
<#--
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.
-->
<#-- TODO: Remove embedded style during UI refactor -->
<style type="text/css">
.webToolList {
list-style-type: none;
margin-left: 1em;
}
.webToolList li {
padding: 0 1em 0 1em;
}
.webToolList h3 {
padding: 1em 0 0 0;
margin-left: -1em;
}
.webToolList li a {
color: #000099;
font-weight: bold;
text-decoration: none;
}
.webToolList li a:hover {
text-decoration: underline;
}
</style>
<div class="screenlet">
<div class="screenlet-title-bar">
<ul>
<li class="h3">Main Page</li>
</ul>
<br class="clear"/>
</div>
<div class="screenlet-body">
<#if !userLogin?has_content>
</#if>
<#if userLogin?has_content>
<ul class="webToolList">
<#if security.hasPermission("WORKFLOW_MAINT", session)>
<li><h3>${uiLabelMap.WorkflowWorkflowEngineTools}</h3></li>
<li><a href="<@ofbizUrl>workflowMonitor</@ofbizUrl>">${uiLabelMap.WorkflowWorkflowMonitor}</a></li>
<li><a href="<@ofbizUrl>readxpdl</@ofbizUrl>">${uiLabelMap.WorkflowReadXPDLFile}</a></li>
</#if>
</ul>
</#if>
</div>
</div>
<!-- end main.ftl -->
@@ -0,0 +1,68 @@
<#--
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.
-->
<h1>${uiLabelMap.WorkflowReadXPDLFile}</h1>
<br />
<p>${uiLabelMap.WorkflowImportXPDLPageDescription}</p>
<hr/>
<#if security.hasPermission("WORKFLOW_MAINT", session)>
<form method="post" action="<@ofbizUrl>readxpdl</@ofbizUrl>">
<table class="basic-table form-widget-table">
<tr>
<td class="label">${uiLabelMap.WorkflowXpdlFilenameOrUrl}</td>
<td><input name='XPDL_LOCATION' type="text" size='60' value='${parameters.XPDL_LOCATION?if_exists}'></td>
<td><span class="label">${uiLabelMap.WorkflowDataIsUrl}</span><input type="checkbox" name='XPDL_IS_URL'<#if parameters.XPDL_IS_URL?has_content> checked="checked"</#if>></td>
</tr>
<tr>
<td class="label">${uiLabelMap.WorkflowImportUpdateToDB}</td>
<td><input type="checkbox" name='XPDL_IMPORT'></td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input type="submit" value='${uiLabelMap.CommonView}'></td>
<td>&nbsp;</td>
</tr>
</table>
</form>
<#if parameters.XPDL_LOCATION?has_content>
<#if messages?has_content>
<hr/>
<h1>${uiLabelMap.CommonErrorMessage3}:</h1>
<div>
<#list messages as message>
<p>${message}</p>
</#list>
</div>
</#if>
<#if toBeStored?has_content>
<#list toBeStored as entity>
<pre>${entity}</pre>
</#list>
<hr/>
<div>${uiLabelMap.WorkflowReadAndPrintedNEntities}</div>
<#else>
<div>${uiLabelMap.WorkflowNoEntitiesRead}.</div>
</#if>
</#if>
<#else>
<h3>${uiLabelMap.WorkflowPermissionWorkflow}</h3>
</#if>
@@ -0,0 +1,100 @@
<#--
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.
-->
<h1>${uiLabelMap.WorkflowActiveWorkflowMonitor}</h1>
<br />
<#if security.hasPermission("WORKFLOW_MAINT", session)>
<#-- list all running processes -->
<#if !parameters.workflow?exists>
<#if runningProcesses?exists>
<p>${uiLabelMap.WorkflowWorkflowPageDescription}</p>
<table class="basic-table dark-grid" cellspacing="0">
<tr class="header-row">
<td>${uiLabelMap.WorkflowWorkflowPackageVersion}</td>
<td>${uiLabelMap.WorkflowWorkflowProcessVersion}</td>
<td>${uiLabelMap.WorkflowWorkflowCurrentStatus}</td>
<td>${uiLabelMap.WorkflowPriority}</div></td>
<td>${uiLabelMap.CommonActualStartDate}</div></td>
<td>${uiLabelMap.WorkflowWorkflowSourceReferenceId}</div></td>
<td>&nbsp;</td>
</tr>
<#list runningProcesses as runningProcess>
<tr>
<td>${runningProcess.workflowPackageId} / ${runningProcess.workflowPackageVersion}</td>
<td>${runningProcess.workflowProcessId} / ${runningProcess.workflowProcessVersion}</td>
<td>${WfUtil.getOMGStatus(runningProcess.getString("currentStatusId"))}</td>
<td>${runningProcess.priority?default("&nbsp;")}</td>
<td>${runningProcess.actualStartDate?default("N/A")}</td>
<td>${runningProcess.sourceReferenceId?default("&nbsp;")}</td>
<td class="button-col"><a href="<@ofbizUrl>workflowMonitor?workflow=${runningProcess.workEffortId?if_exists}</@ofbizUrl>">${uiLabelMap.CommonView}</a></td>
</tr>
</#list>
</table>
<else>
<h3>${uiLabelMap.WorkflowNoRunningProcesses}</h3>
</#if>
<#else>
<#-- list all steps in the process -->
<#if activities?exists>
<div class="button-bar"><a href="<@ofbizUrl>workflowMonitor</@ofbizUrl>">${uiLabelMap.WorkflowWorkflows}</a></div>
<br />
<div class="screenlet">
<div class="screenlet-title-bar">
<h3>${uiLabelMap.WorkflowWorkflowActivityListFor}: ${workflowDefworkflowPackageId} / ${workflowDef.workflowProcessId}</h3>
</div>
<table class="basic-table dark-grid" cellspacing="0">
<tr class="header-row">
<td>${uiLabelMap.WorkflowWorkflowActivityId}</td>
<td>${uiLabelMap.WorkflowPriority}</td>
<td>${uiLabelMap.WorkflowWorkflowCurrentStatus}</td>
<td>${uiLabelMap.CommonActualStartDate}</td>
<td>${uiLabelMap.WorkflowWorkflowActualCompleteDate}</td>
<td>${uiLabelMap.WorkflowWorkflowAssignments}</td>
</tr>
<#list activities as step>
<#assign assignments = step.getRelated("WorkEffortPartyAssignment")>
<#assign assignments = EntityUtil.filterByDate(assignments)>
<tr>
<#-- TODO: add external login ID to external links -->
<td class="button-col"><a href="/workeffort/control/activity?workEffortId=${step.workEffortId}" target="workeffort">${step.workflowActivityId}</a></td>
<td>${step.priority?default("&nbsp;")}</td>
<td>${WfUtil.getOMGStatus(step.getString("currentStatusId"))}</td>
<td>${step.actualStartDate?default("N/A")}</td>
<td>${step.actualCompletionDate?default("N/A")}</td>
<td class="button-col">
<#if assignments?has_content>
<#list assignments as assignment>
<a href="/partymgr/control/viewprofile?party_id=${assignment.partyId?if_exists}" target="partymgr" >${assignment.partyId}</a>
</#list>
<#else>
N/A
</#if>
</td>
</tr>
</#list>
</table>
</div>
<#else>
<h3>${uiLabelMap.WorkflowNoStepsFoundForRunningWorkflow}</h3>
</#if>
</#if>
<#else>
<h3>${uiLabelMap.WorkflowPermissionWorkflow}</h3>
</#if>
+91
View File
@@ -0,0 +1,91 @@
<!--
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.
-->
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
<screen name="readxpdl">
<section>
<actions>
<set field="headerItem" value="main"/>
<set field="titleProperty" value="WebtoolsReadXPDLFile"/>
<script location="component://webtools/webapp/webtools/WEB-INF/actions/workflow/ReadXpdl.groovy"/>
</actions>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.WebtoolsReadXPDLFile}"/>
</container>
</container>
<container style="screenlet-body">
<section>
<widgets>
<platform-specific>
<html>
<html-template location="component://webtools/webapp/webtools/workflow/readxpdl.ftl"/>
</html>
</platform-specific>
</widgets>
</section>
</container>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="workflowMonitor">
<section>
<actions>
<set field="headerItem" value="main"/>
<set field="titleProperty" value="WebtoolsActiveWorkflowMonitor"/>
<script location="component://webtools/webapp/webtools/WEB-INF/actions/workflow/WorkflowMonitor.groovy"/>
</actions>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.WebtoolsActiveWorkflowMonitor}"/>
</container>
</container>
<container style="screenlet-body">
<section>
<widgets>
<platform-specific>
<html>
<html-template location="component://webtools/webapp/webtools/workflow/workflowMonitor.ftl"/>
</html>
</platform-specific>
</widgets>
</section>
</container>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
</screens>