enact.html 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns:th="http://www.thymeleaf.org" th:replace="base::layout(~{::title}, ~{::main})">
  3. <head>
  4. <title>Wee! Workflow Enactment Engine</title>
  5. </head>
  6. <body>
  7. <main>
  8. <section>
  9. <h1>Wee: Workflow Enactment Engine</h1>
  10. <div>
  11. <h3 th:inline="text">Enacting the Process Model: [[${session.pm.name}]] </h3>
  12. <form th:action="@{/startAct}" method="post">
  13. <table>
  14. <tr th:if="${session.acts != null && session.acts.size > 0}">
  15. <td><h3> Select activity to start:</h3></td>
  16. <td>
  17. <select id="activities" name="activity" th:onchange="'window.location.href = \'' + @{/inarts} + '?iri=\' + encodeURIComponent(this.value) ' ">
  18. <option th:value="1">select Activity</option>
  19. <option th:each="act: ${session.acts}" th:selected="${act.iri == current}" th:value="${act.iri}" th:text="${act.name}"></option>
  20. </select>
  21. </td>
  22. </tr>
  23. <tr th:if="${session.endacts != null && session.endacts.size > 0}">
  24. <td><h3> Select activity to end: </h3></td>
  25. <td>
  26. <select id="activitiesend" name="activityend" th:onchange="'window.location.href = \'' + @{/endselect} + '?iri=\' + encodeURIComponent(this.value) ' ">
  27. <option th:value="1">select Activity</option>
  28. <option th:each="actend: ${session.endacts}" th:selected="${actend.iri == currentend}" th:value="${actend.iri}" th:text="${actend.name}"></option>
  29. </select>
  30. </td>
  31. </tr>
  32. </table>
  33. <input id="endEnactment" th:if="${endBool}" type="submit" value="End Enactment"/>
  34. <div id="hidden_div" th:if="${session.arts != null}">
  35. <table th:if="${session.arts != null && session.arts.size > 0}">
  36. <tr>
  37. <th colspan="2"><h3>Artifacts</h3></th>
  38. </tr>
  39. <th:block th:each="art : ${session.arts}">
  40. <tr>
  41. <td> Artifact Name:</td>
  42. <td th:text="${art.relatesTo.name}">...</td>
  43. </tr>
  44. <tr>
  45. <td> Type:</td>
  46. <td th:text="${art.relatesTo.type}"></td>
  47. </tr>
  48. <tr>
  49. <td colspan="2"><a th:href="@{|${storageURL}/files/file/${art.location}|}"> Download </a></td>
  50. </tr>
  51. </th:block>
  52. </table>
  53. <input id="startActivity" type="submit" value="Start Activity"/>
  54. </div>
  55. </div>
  56. <div>
  57. <h3 th:inline="text">Trace: [[${session.trace.name}]]</h3>
  58. <h4 th:inline="text">Started at: [[${session.trace.timestampF}]]</h4>
  59. <table>
  60. <th:block th:each="ev : ${session.trace.events}">
  61. <tr>
  62. <td th:if="${ev.class.name == 'ua.be.wee.model.pt.StartActivityEvent'}">begin:
  63. </td>
  64. <td th:if="${ev.class.name == 'ua.be.wee.model.pt.EndActivityEvent'}">end:
  65. </td>
  66. <td colspan="2" th:text="${ev.relatesTo.act.name}">...</td>
  67. </tr>
  68. <tr>
  69. <td colspan="2">port:</td>
  70. <td>[[${ev.relatesTo.name}]]</td>
  71. </tr>
  72. </th:block>
  73. </table>
  74. </div>
  75. </section>
  76. </main>
  77. </body>
  78. </html>