blob: a94936648aeac24375a4c03ab17ff6834468fad7 [file] [log] [blame]
/**
*
* Copyright (c) 2011, 2016 - Loetz GmbH&Co.KG (69115 Heidelberg, Germany)
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Christophe Loetz (Loetz GmbH&Co.KG) - initial implementation
*/
package org.eclipse.osbp.bpm.api;
import java.util.List;
import java.util.Map;
import org.jbpm.task.Task;
import org.jbpm.task.event.entity.TaskEventType;
import org.jbpm.task.query.TaskSummary;
import org.jbpm.task.service.Operation;
import org.eclipse.osbp.dsl.common.datatypes.IDto;
import org.eclipse.osbp.ui.api.user.IUser;
public interface IBPMTaskClient extends IBlipBPMConstants {
boolean operations(final long taskId, final IUser user, final IUser alternateUser, final Operation operation);
Task getTask(final Long taskId);
TaskSummary getUserTask(final Long taskId, final IUser user);
List<TaskSummary> getUserTaskList(final IUser user, boolean owned);
void subscribeProcessCompletedEventNotification(IBPMTaskEventNotification notification);
void unsubscribeProcessCompletedEventNotification(IBPMTaskEventNotification notification);
void subscribeTaskEventNotification(IBPMTaskEventNotification notification);
void subscribeTaskEventNotification(TaskEventType type, IBPMTaskEventNotification notification);
void unsubscribeTaskEventNotification(IBPMTaskEventNotification notification);
void unsubscribeTaskEventNotification(TaskEventType type, IBPMTaskEventNotification notification);
public IDto getWorkloadDto(Object processInstanceId);
public String getWorkloadDtoFqn(Object taskSummary);
public void setWorkloadDto(Object taskSummary, IDto workloadDto);
public String getProcessId(Object taskSummary);
public Map<String,Object> getProcessVariables(Object taskSummary);
public Object getProcessVariable(Object taskSummary, String variable);
public Object setProcessVariable(Object taskSummary, String variable, Object value);
}