blob: a1dab8499c4226159dc360e084d4057b93640ed5 [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.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 BPMOperation operation);
BPMTaskSummary getUserTask(final Long taskId, final IUser user);
List<BPMTaskSummary> getUserTaskList(final IUser user, boolean owned);
void subscribeProcessCompletedEventNotification(IBPMTaskEventNotification notification);
void unsubscribeProcessCompletedEventNotification(IBPMTaskEventNotification notification);
void subscribeTaskEventNotification(IBPMTaskEventNotification notification);
void subscribeTaskEventNotification(BPMTaskEventType type, IBPMTaskEventNotification notification);
void unsubscribeTaskEventNotification(IBPMTaskEventNotification notification);
void unsubscribeTaskEventNotification(BPMTaskEventType type, IBPMTaskEventNotification notification);
IDto getWorkloadDto(BPMTaskSummary taskSummary);
String getWorkloadDtoFqn(BPMTaskSummary taskSummary);
void setWorkloadDto(BPMTaskSummary taskSummary, IDto workloadDto);
String getProcessId(BPMTaskSummary taskSummary);
Map<String,Object> getProcessVariables(BPMTaskSummary taskSummary);
Object getProcessVariable(BPMTaskSummary taskSummary, String variable);
Object setProcessVariable(BPMTaskSummary taskSummary, String variable, Object value);
void registerPerspectiveListener(BPMTaskClientPerspectiveListener listener);
void unregisterPerspectiveListener(BPMTaskClientPerspectiveListener listener);
}