@Service public class TaskService extends Object
| Constructor and Description |
|---|
TaskService()
Public constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deleteExecutionEvents(long id)
Delete execution events.
|
void |
deleteTask(FormProperties formProperties)
Delete task from system.
|
void |
executeTask(FormProperties formProperties)
Create task from form properties.
|
Set<Long> |
findExecutionWithErrorsNotRevised()
Find executions with errors.
|
List<TaskExecutionEvent> |
getExecutionEvents(long id)
Get execution event from an execution.
|
List<TaskExecution> |
getExecutions(long id)
Get executions for a task.
|
TaskExecution |
getTaskExecutionById(String id)
Load a task execution by id.
|
long |
insertTask(FormProperties properties)
Insert task.
|
long |
insertTaskExecution(long id)
Insert task execution.
|
void |
insertTaskExecutionEvent(long taskExecutionId,
String description,
String type)
Insert task execution event.
|
List<FormProperties> |
loadAllTasks()
Load all tasks.
|
FormProperties |
loadTaskById(long id)
Load task by id.
|
void |
markAllAsRevised(String id)
MArk every execution for a task as revised.
|
void |
markAsRevised(String id)
Mark a execution as revised.
|
void |
stopAllTasks()
Stop all tasks.
|
void |
stopTask(FormProperties formProperties)
Stop task.
|
void |
updateTask(FormProperties properties)
Update task data.
|
void |
updateTaskExecution(long taskExecutionId,
String state)
Update task execution.
|
void |
updateTaskRunningState(long id,
boolean state)
Update running state for an exeuction.
|
public void executeTask(FormProperties formProperties)
formProperties - form propertiespublic void stopTask(FormProperties formProperties)
formProperties - for propertiespublic Set<Long> findExecutionWithErrorsNotRevised() throws ParseException, SQLException
ParseException - exceptionSQLException - exceptionpublic FormProperties loadTaskById(long id) throws SQLException
id - task idSQLException - exceptionpublic void markAsRevised(String id) throws SQLException
id - execution idSQLException - exceptionpublic void markAllAsRevised(String id) throws SQLException
id - task idSQLException - exceptionpublic List<TaskExecution> getExecutions(long id) throws SQLException, ParseException
id - task idSQLException - exceptionParseException - exceptionpublic TaskExecution getTaskExecutionById(String id) throws SQLException, ParseException
id - execution idSQLException - exceptionParseException - exceptionpublic List<TaskExecutionEvent> getExecutionEvents(long id) throws SQLException
id - execution idSQLException - exceptionpublic long insertTask(FormProperties properties) throws SQLException
properties - task propertiesSQLException - exceptionpublic void updateTask(FormProperties properties) throws SQLException
properties - task propertiesSQLException - exceptionpublic void stopAllTasks()
throws SQLException
SQLException - exceptionpublic List<FormProperties> loadAllTasks() throws SQLException
SQLException - exceptionpublic long insertTaskExecution(long id)
throws SQLException
id - task idSQLException - exceptionpublic void updateTaskRunningState(long id,
boolean state)
throws SQLException
id - execution idstate - stateSQLException - exceptionpublic void updateTaskExecution(long taskExecutionId,
String state)
throws SQLException
taskExecutionId - task execution idstate - stateSQLException - exceptionpublic void insertTaskExecutionEvent(long taskExecutionId,
String description,
String type)
throws SQLException
taskExecutionId - execution iddescription - descriptiontype - typeSQLException - exceptionpublic void deleteTask(FormProperties formProperties) throws SQLException
formProperties - form propertiesSQLException - exceptionpublic void deleteExecutionEvents(long id)
throws SQLException
id - task idSQLException - exceptionCopyright © 2021 Pivotal Software, Inc.. All rights reserved.