Search in sources :

Example 1 with CancelTaskDeadlineCommand

use of org.jbpm.kie.services.impl.admin.commands.CancelTaskDeadlineCommand in project jbpm by kiegroup.

the class UserTaskAdminServiceImpl method cancelNotification.

@Override
public void cancelNotification(String deploymentId, long taskId, long notificationId) throws TaskNotFoundException {
    UserTaskInstanceDesc task = runtimeDataService.getTaskById(taskId);
    validateTask(deploymentId, taskId, task);
    userTaskService.execute(task.getDeploymentId(), ProcessInstanceIdContext.get(task.getProcessInstanceId()), new CancelTaskDeadlineCommand(identityProvider.getName(), taskId, notificationId));
}
Also used : CancelTaskDeadlineCommand(org.jbpm.kie.services.impl.admin.commands.CancelTaskDeadlineCommand) UserTaskInstanceDesc(org.jbpm.services.api.model.UserTaskInstanceDesc)

Example 2 with CancelTaskDeadlineCommand

use of org.jbpm.kie.services.impl.admin.commands.CancelTaskDeadlineCommand in project jbpm by kiegroup.

the class UserTaskAdminServiceImpl method cancelReassignment.

@Override
public void cancelReassignment(String deploymentId, long taskId, long reassignmentId) throws TaskNotFoundException {
    UserTaskInstanceDesc task = runtimeDataService.getTaskById(taskId);
    validateTask(deploymentId, taskId, task);
    userTaskService.execute(task.getDeploymentId(), ProcessInstanceIdContext.get(task.getProcessInstanceId()), new CancelTaskDeadlineCommand(identityProvider.getName(), taskId, reassignmentId));
}
Also used : CancelTaskDeadlineCommand(org.jbpm.kie.services.impl.admin.commands.CancelTaskDeadlineCommand) UserTaskInstanceDesc(org.jbpm.services.api.model.UserTaskInstanceDesc)

Aggregations

CancelTaskDeadlineCommand (org.jbpm.kie.services.impl.admin.commands.CancelTaskDeadlineCommand)2 UserTaskInstanceDesc (org.jbpm.services.api.model.UserTaskInstanceDesc)2