Rev 1591 | Rev 1594 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1591 | Rev 1592 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | <%@ tag import="jomm.utils.MessageResources" %> |
1 | <%@ tag import="jomm.utils.MessageResources" %> |
2 | <%@ tag import="pt.estgp.estgweb.domain.JobServiceTaskImpl" %> |
2 | <%@ tag import="pt.estgp.estgweb.domain.JobServiceTaskImpl" %> |
3 | <%@ tag import="pt.estgp.estgweb.domain.dao.DaoFactory" %> |
3 | <%@ tag import="pt.estgp.estgweb.domain.dao.DaoFactory" %> |
4 | <%@ tag import="pt.estgp.estgweb.web.form.configuration.SchedulleTasksForm" %> |
4 | <%@ tag import="pt.estgp.estgweb.web.form.configuration.SchedulleTasksForm" %> |
5 | <%@ tag import="jomm.dao.impl.AbstractDao" %> |
5 | <%@ tag import="jomm.dao.impl.AbstractDao" %> |
- | 6 | <%@ tag import="com.oss.asn1.BOOLEAN" %> |
|
6 | <%@tag description="Body Tag Page template" pageEncoding="UTF-8"%> |
7 | <%@tag description="Body Tag Page template" pageEncoding="UTF-8"%> |
7 | <%@taglib prefix="t" tagdir="/WEB-INF/tags/examples" %> |
8 | <%@taglib prefix="t" tagdir="/WEB-INF/tags/examples" %> |
8 | <%@attribute name="taskId" type="java.lang.Long" required="false" %> <!-- Task ID to get the JOB from database --> |
9 | <%@attribute name="taskId" type="java.lang.Long" required="false" %> <!-- Task ID to get the JOB from database --> |
9 | <%@attribute name="transactional" type="java.lang.Boolean" required="true" %> <!-- Define if tag should open database transaction --> |
10 | <%@attribute name="transactional" type="java.lang.Boolean" required="true" %> <!-- Define if tag should open database transaction --> |
10 | <%@attribute name="job" type="pt.estgp.estgweb.domain.JobServiceTaskImpl" required="false"%> <!-- If job defined TaskId is not used --> |
11 | <%@attribute name="job" type="pt.estgp.estgweb.domain.JobServiceTaskImpl" required="false"%> <!-- If job defined TaskId is not used --> |
Line 12... | Line 13... | ||
12 | <%@attribute name="logSizeXs" type="java.lang.Boolean" required="false" %> <!-- Task Log Size --> |
13 | <%@attribute name="logSizeXs" type="java.lang.Boolean" required="false" %> <!-- Task Log Size --> |
13 | 14 | ||
14 | <div class="col-md-12"> |
15 | <div class="col-md-12"> |
15 | <% |
16 | <% |
16 | 17 | ||
17 | if(!transactional) |
18 | if(!transactional.booleanValue()) |
18 | { |
19 | { |
19 | AbstractDao.getCurrentSession().beginTransaction(); |
20 | AbstractDao.getCurrentSession().beginTransaction(); |
20 | } |
21 | } |
21 | 22 | ||
22 | if(logSizeXs == null) |
23 | if(logSizeXs == null) |
23 | logSizeXs = false; |
24 | logSizeXs = Boolean.FALSE; |
24 | 25 | ||
25 | if(taskId != null) |
26 | if(taskId != null) |
26 | { |
27 | { |
27 | job = taskId > 0 ? |
28 | job = taskId > 0 ? |
28 | (JobServiceTaskImpl) DaoFactory.getJobServiceTaskDaoImpl().load(taskId) : |
29 | (JobServiceTaskImpl) DaoFactory.getJobServiceTaskDaoImpl().load(taskId) : |
Line 59... | Line 60... | ||
59 | %> |
60 | %> |
60 | <div class="alert alert-danger">O sistema não conseguiu encontrar a tarefa de atribuição nas tarefas agendadas, por favor verifique em todos os logs de tarefas <html:link action="/user/configurationJobTasks">Aqui</html:link> </div> |
61 | <div class="alert alert-danger">O sistema não conseguiu encontrar a tarefa de atribuição nas tarefas agendadas, por favor verifique em todos os logs de tarefas <html:link action="/user/configurationJobTasks">Aqui</html:link> </div> |
61 | <% |
62 | <% |
62 | } |
63 | } |
63 | 64 | ||
64 | if(!transactional) |
65 | if(!transactional.booleanValue()) |
65 | { |
66 | { |
66 | AbstractDao.getCurrentSession().getTransaction().commit(); |
67 | AbstractDao.getCurrentSession().getTransaction().commit(); |
67 | } |
68 | } |
68 | %> |
69 | %> |
69 | </div> |
70 | </div> |
70 | 71 |