

import { Observable, Subject } from 'rxjs';
import { ProcessInstanceCloud } from '../start-process/models/process-instance-cloud.model';
import { ProcessDefinitionCloud } from '../../models/process-definition-cloud.model';
import { ApplicationVersionModel } from '../../models/application-version.model';

export interface ProcessCloudInterface {

    dataChangesDetected: Subject<ProcessInstanceCloud>;

    getProcessInstanceById(appName: string, processInstanceId: string): Observable<ProcessInstanceCloud>;
    getProcessDefinitions(appName: string): Observable<ProcessDefinitionCloud[]>;
    getApplicationVersions(appName: string): Observable<ApplicationVersionModel[]>;
    cancelProcess(appName: string, processInstanceId: string): Observable<ProcessInstanceCloud>;
}
