com.netgrif.application.engine.workflow.service.interfaces.ITaskService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of application-engine Show documentation
Show all versions of application-engine Show documentation
System provides workflow management functions including user, role and data management.
package com.netgrif.application.engine.workflow.service.interfaces;
import com.netgrif.application.engine.auth.domain.IUser;
import com.netgrif.application.engine.auth.domain.LoggedUser;
import com.netgrif.application.engine.petrinet.domain.throwable.TransitionNotExecutableException;
import com.netgrif.application.engine.workflow.domain.Case;
import com.netgrif.application.engine.workflow.domain.Task;
import com.netgrif.application.engine.workflow.domain.TaskNotFoundException;
import com.netgrif.application.engine.workflow.domain.eventoutcomes.dataoutcomes.SetDataEventOutcome;
import com.netgrif.application.engine.workflow.domain.eventoutcomes.taskoutcomes.AssignTaskEventOutcome;
import com.netgrif.application.engine.workflow.domain.eventoutcomes.taskoutcomes.CancelTaskEventOutcome;
import com.netgrif.application.engine.workflow.domain.eventoutcomes.taskoutcomes.DelegateTaskEventOutcome;
import com.netgrif.application.engine.workflow.domain.eventoutcomes.taskoutcomes.FinishTaskEventOutcome;
import com.netgrif.application.engine.workflow.web.requestbodies.TaskSearchRequest;
import com.netgrif.application.engine.workflow.web.responsebodies.TaskReference;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
public interface ITaskService {
void reloadTasks(Case useCase);
Task findOne(String taskId);
Page getAll(LoggedUser loggedUser, Pageable pageable, Locale locale);
Page search(List requests, Pageable pageable, LoggedUser user, Locale locale, Boolean isIntersection);
long count(List requests, LoggedUser user, Locale locale, Boolean isIntersection);
Page findByCases(Pageable pageable, List cases);
List findAllById(List ids);
Page findByUser(Pageable pageable, IUser user);
Task findById(String id);
Page findByTransitions(Pageable pageable, List transitions);
Page searchAll(com.querydsl.core.types.Predicate predicate);
Page search(com.querydsl.core.types.Predicate predicate, Pageable pageable);
Task searchOne(com.querydsl.core.types.Predicate predicate);
List finishTasks(List tasks, IUser user) throws TransitionNotExecutableException;
List finishTasks(List tasks, IUser user, Map params) throws TransitionNotExecutableException;
FinishTaskEventOutcome finishTask(Task task, IUser user) throws TransitionNotExecutableException;
FinishTaskEventOutcome finishTask(Task task, IUser user, Map params) throws TransitionNotExecutableException;
FinishTaskEventOutcome finishTask(LoggedUser loggedUser, String taskId) throws IllegalArgumentException, TransitionNotExecutableException;
FinishTaskEventOutcome finishTask(LoggedUser loggedUser, String taskId, Map params) throws IllegalArgumentException, TransitionNotExecutableException;
FinishTaskEventOutcome finishTask(String taskId) throws IllegalArgumentException, TransitionNotExecutableException;
FinishTaskEventOutcome finishTask(String taskId, Map params) throws IllegalArgumentException, TransitionNotExecutableException;
List assignTasks(List tasks, IUser user) throws TransitionNotExecutableException;
List assignTasks(List tasks, IUser user, Map params) throws TransitionNotExecutableException;
AssignTaskEventOutcome assignTask(Task task, IUser user) throws TransitionNotExecutableException;
AssignTaskEventOutcome assignTask(Task task, IUser user, Map params) throws TransitionNotExecutableException;
AssignTaskEventOutcome assignTask(LoggedUser loggedUser, String taskId) throws TransitionNotExecutableException, TaskNotFoundException;
AssignTaskEventOutcome assignTask(LoggedUser loggedUser, String taskId, Map params) throws TransitionNotExecutableException, TaskNotFoundException;
AssignTaskEventOutcome assignTask(String taskId) throws TransitionNotExecutableException;
AssignTaskEventOutcome assignTask(String taskId, Map params) throws TransitionNotExecutableException;
List cancelTasks(List tasks, IUser user);
List cancelTasks(List tasks, IUser user, Map params);
CancelTaskEventOutcome cancelTask(Task task, IUser user);
CancelTaskEventOutcome cancelTask(Task task, IUser user, Map params);
CancelTaskEventOutcome cancelTask(LoggedUser loggedUser, String taskId);
CancelTaskEventOutcome cancelTask(LoggedUser loggedUser, String taskId, Map params);
/**
* cancel task action
*/
@SuppressWarnings("unused")
void cancelTasksWithoutReload(Set transitions, String caseId);
void cancelTasksWithoutReload(Set transitions, String caseId, Map params);
DelegateTaskEventOutcome delegateTask(LoggedUser loggedUser, String delegatedId, String taskId) throws TransitionNotExecutableException;
DelegateTaskEventOutcome delegateTask(LoggedUser loggedUser, String delegatedId, String taskId, Map params) throws TransitionNotExecutableException;
void resolveUserRef(Case useCase);
Task resolveUserRef(Task task, Case useCase);
void delete(List tasks, Case useCase);
void delete(List tasks, String caseId);
void deleteTasksByCase(String caseId);
void deleteTasksByPetriNetId(String petriNetId);
List findAllByCase(String caseId, Locale locale);
List findAllByCase(String caseId);
Task save(Task task);
List save(List tasks);
SetDataEventOutcome getMainOutcome(Map outcomes, String taskId);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy