|
@@ -1,132 +1,78 @@
|
|
|
<!DOCTYPE html>
|
|
|
-<html lang="en">
|
|
|
-
|
|
|
+<html lang="en" xmlns:th="http://www.thymeleaf.org" th:replace="base::layout(~{::title}, ~{::main})">
|
|
|
<head>
|
|
|
- <meta charset="UTF-8">
|
|
|
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
- <title>New account</title>
|
|
|
- <style>
|
|
|
- .button {
|
|
|
- border: none;
|
|
|
- color: white;
|
|
|
- padding: 16px 32px;
|
|
|
- text-align: center;
|
|
|
- text-decoration: none;
|
|
|
- display: inline-block;
|
|
|
- font-size: 16px;
|
|
|
- margin: 4px 2px;
|
|
|
- transition-duration: 0.4s;
|
|
|
- cursor: pointer;
|
|
|
- }
|
|
|
-
|
|
|
- .button1 {
|
|
|
- background-color: white;
|
|
|
- color: black;
|
|
|
- border: 2px solid #5e9ca0;
|
|
|
- }
|
|
|
-
|
|
|
- .button1:hover {
|
|
|
- background-color: #5e9ca0;
|
|
|
- color: white;
|
|
|
- }
|
|
|
- </style>
|
|
|
-
|
|
|
+ <title>Wee! Workflow Enactment Engine</title>
|
|
|
</head>
|
|
|
-
|
|
|
<body>
|
|
|
-<div style="width:100%; height: 100px;background-color:white" class="bg-faded">
|
|
|
- <!-- Main Div -->
|
|
|
- <h1 style="color: #5e9ca0; text-align: center;">Wee: Workflow Enactment Engine</h1>
|
|
|
-</div>
|
|
|
-
|
|
|
-<div style="float:left;width:50%;" >
|
|
|
-
|
|
|
-<h3 style="color: #5e9ca0;" th:inline="text">Enacting the Process Model: [[${session.pm.name}]] </h3>
|
|
|
-
|
|
|
-<form th:action="@{/startAct}" method="post">
|
|
|
-<table>
|
|
|
-
|
|
|
- <tr th:if="${session.acts != null && session.acts.size > 0}" >
|
|
|
- <td ><h3 style="color: #5e9ca0;"> Select activity to start:</h3></td>
|
|
|
- <td >
|
|
|
-
|
|
|
- <select class="form-control" id="activities" name="activity" th:onchange="'window.location.href = \'' + @{/inarts} + '?iri=\' + encodeURIComponent(this.value) ' " >
|
|
|
- <option th:value="1" >select Activity</option>
|
|
|
- <option th:each="act: ${session.acts}" th:selected="${act.iri == current}" th:value="${act.iri}" th:text="${act.name}"></option>
|
|
|
- </select>
|
|
|
-
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
-
|
|
|
- <tr th:if="${session.endacts != null && session.endacts.size > 0}" >
|
|
|
- <td ><h3 style="color: #5e9ca0;"> Select activity to end: </h3></td>
|
|
|
- <td >
|
|
|
-
|
|
|
- <select class="form-control" id="activitiesend" name="activityend" th:onchange="'window.location.href = \'' + @{/endselect} + '?iri=\' + encodeURIComponent(this.value) ' " >
|
|
|
- <option th:value="1" >select Activity</option>
|
|
|
- <option th:each="actend: ${session.endacts}" th:selected="${actend.iri == currentend}" th:value="${actend.iri}" th:text="${actend.name}"></option>
|
|
|
- </select>
|
|
|
-
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
-</table>
|
|
|
-
|
|
|
-<input id="endEnactment" th:if="${endBool}" class="button button1" type="submit" value="End Enactment" />
|
|
|
-
|
|
|
-<div id="hidden_div" th:if="${session.arts != null}">
|
|
|
-
|
|
|
-<table th:if="${session.arts != null && session.arts.size > 0}">
|
|
|
- <tr> <th colspan="2" style="padding: 20px; border-bottom: 1px solid red;" ><h3 style="color: #5e9ca0;"> Artifacts </h3></th> </tr>
|
|
|
-
|
|
|
-
|
|
|
- <th:block th:each="art : ${session.arts}">
|
|
|
-
|
|
|
- <tr>
|
|
|
- <td style="color: #5e9ca0;font-weight: bold;" > Artifact Name:</td>
|
|
|
- <td style="color: #5e9ca0;" th:text="${art.relatesTo.name}">...</td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td style="color: #5e9ca0;font-weight: bold;" > Type:</td>
|
|
|
- <td style="color: #5e9ca0;" th:text="${art.relatesTo.type}" > </td>
|
|
|
- </tr>
|
|
|
-
|
|
|
- <tr>
|
|
|
- <td colspan="2" style="color: #5e9ca0;font-weight: bold; padding: 20px;
|
|
|
- border-bottom: 1px solid red;" > <a class="button button1" th:href="@{|${storageURL}/files/file/${art.location}|}"> Download </a> </td>
|
|
|
-
|
|
|
- </tr>
|
|
|
-
|
|
|
- </th:block>
|
|
|
-</table>
|
|
|
-<input id="startActivity" class="button button1" type="submit" value="Start Activity"/>
|
|
|
-
|
|
|
-</div>
|
|
|
-
|
|
|
-</div>
|
|
|
-
|
|
|
-<div style="float:left; width:50%; background-color:white; ">
|
|
|
-
|
|
|
-<h3 style="color: #5e9ca0;" th:inline="text">Trace: [[${session.trace.name}]] </h3>
|
|
|
-<h4 style="color: #5e9ca0;" th:inline="text">Started at: [[${session.trace.timestampF}]] </h4>
|
|
|
-
|
|
|
-
|
|
|
-<table>
|
|
|
- <th:block th:each="ev : ${session.trace.events}">
|
|
|
- <tr>
|
|
|
- <td style="color: #5e9ca0;font-weight: bold;" th:if="${ev.class.name == 'ua.be.wee.model.pt.StartActivityEvent'}" >begin:</td>
|
|
|
- <td style="color: #5e9ca0;font-weight: bold;" th:if="${ev.class.name == 'ua.be.wee.model.pt.EndActivityEvent'}" >end:</td>
|
|
|
- <td style="color: #5e9ca0;" colspan="2" th:text="${ev.relatesTo.act.name}">...</td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td style="color: #5e9ca0;font-weight: bold;" colspan="2" >port:</td>
|
|
|
- <td style="color: #5e9ca0;" >[[${ev.relatesTo.name}]]</td>
|
|
|
- </tr>
|
|
|
- </th:block>
|
|
|
-</table>
|
|
|
-
|
|
|
-</div>
|
|
|
-
|
|
|
+<main>
|
|
|
+ <section>
|
|
|
+ <h1>Wee: Workflow Enactment Engine</h1>
|
|
|
+ <div>
|
|
|
+ <h3 th:inline="text">Enacting the Process Model: [[${session.pm.name}]] </h3>
|
|
|
+ <form th:action="@{/startAct}" method="post">
|
|
|
+ <table>
|
|
|
+ <tr th:if="${session.acts != null && session.acts.size > 0}">
|
|
|
+ <td><h3> Select activity to start:</h3></td>
|
|
|
+ <td>
|
|
|
+ <select id="activities" name="activity" th:onchange="'window.location.href = \'' + @{/inarts} + '?iri=\' + encodeURIComponent(this.value) ' ">
|
|
|
+ <option th:value="1">select Activity</option>
|
|
|
+ <option th:each="act: ${session.acts}" th:selected="${act.iri == current}" th:value="${act.iri}" th:text="${act.name}"></option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr th:if="${session.endacts != null && session.endacts.size > 0}">
|
|
|
+ <td><h3> Select activity to end: </h3></td>
|
|
|
+ <td>
|
|
|
+ <select id="activitiesend" name="activityend" th:onchange="'window.location.href = \'' + @{/endselect} + '?iri=\' + encodeURIComponent(this.value) ' ">
|
|
|
+ <option th:value="1">select Activity</option>
|
|
|
+ <option th:each="actend: ${session.endacts}" th:selected="${actend.iri == currentend}" th:value="${actend.iri}" th:text="${actend.name}"></option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ <input id="endEnactment" th:if="${endBool}" type="submit" value="End Enactment"/>
|
|
|
+ <div id="hidden_div" th:if="${session.arts != null}">
|
|
|
+ <table th:if="${session.arts != null && session.arts.size > 0}">
|
|
|
+ <tr>
|
|
|
+ <th colspan="2"><h3>Artifacts</h3></th>
|
|
|
+ </tr>
|
|
|
+ <th:block th:each="art : ${session.arts}">
|
|
|
+ <tr>
|
|
|
+ <td> Artifact Name:</td>
|
|
|
+ <td th:text="${art.relatesTo.name}">...</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td> Type:</td>
|
|
|
+ <td th:text="${art.relatesTo.type}"></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td colspan="2"><a th:href="@{|${storageURL}/files/file/${art.location}|}"> Download </a></td>
|
|
|
+ </tr>
|
|
|
+ </th:block>
|
|
|
+ </table>
|
|
|
+ <input id="startActivity" type="submit" value="Start Activity"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <h3 th:inline="text">Trace: [[${session.trace.name}]]</h3>
|
|
|
+ <h4 th:inline="text">Started at: [[${session.trace.timestampF}]]</h4>
|
|
|
+ <table>
|
|
|
+ <th:block th:each="ev : ${session.trace.events}">
|
|
|
+ <tr>
|
|
|
+ <td th:if="${ev.class.name == 'ua.be.wee.model.pt.StartActivityEvent'}">begin:
|
|
|
+ </td>
|
|
|
+ <td th:if="${ev.class.name == 'ua.be.wee.model.pt.EndActivityEvent'}">end:
|
|
|
+ </td>
|
|
|
+ <td colspan="2" th:text="${ev.relatesTo.act.name}">...</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td colspan="2">port:</td>
|
|
|
+ <td>[[${ev.relatesTo.name}]]</td>
|
|
|
+ </tr>
|
|
|
+ </th:block>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </section>
|
|
|
+</main>
|
|
|
</body>
|
|
|
-
|
|
|
</html>
|