import {HttpRequestWithIdentity} from '@essential-projects/http_contracts'; import {Response} from 'express'; /** * Describes a HttpController for managing HttpRequests related to EmptyActivities. */ export interface IEmptyActivityHttpController { /** * Retrieves a list of all suspended EmptyActivities belonging to an instance of a * specific ProcessModel. * * @async * @param request The HttpRequest object containing all request infos. * @param response The HttpResponse object to use for sending a Http response. */ getEmptyActivitiesForProcessModel(request: HttpRequestWithIdentity, response: Response): Promise; /** * Retrieves a list of all suspended EmptyActivities belonging to a specific * ProcessInstance. * * @async * @param request The HttpRequest object containing all request infos. * @param response The HttpResponse object to use for sending a Http response. */ getEmptyActivitiesForProcessInstance(request: HttpRequestWithIdentity, response: Response): Promise; /** * Retrieves a list of all suspended EmptyActivities belonging to a specific * Correlation. * * @async * @param request The HttpRequest object containing all request infos. * @param response The HttpResponse object to use for sending a Http response. */ getEmptyActivitiesForCorrelation(request: HttpRequestWithIdentity, response: Response): Promise; /** * Retrieves a list of all suspended EmptyActivities belonging to an instance of a * specific ProcessModel within a Correlation. * * @async * @param request The HttpRequest object containing all request infos. * @param response The HttpResponse object to use for sending a Http response. */ getEmptyActivitiesForProcessModelInCorrelation(request: HttpRequestWithIdentity, response: Response): Promise; /** * Gets all waiting EmptyActivities belonging to the given identity. * * @async * @param request The HttpRequest object containing all request infos. * @param response The HttpResponse object to use for sending a Http response. */ getWaitingEmptyActivitiesByIdentity(request: HttpRequestWithIdentity, response: Response): Promise; /** * Finishes a EmptyActivity belonging to an instance of a specific ProcessModel * within a Correlation. * * @async * @param request The HttpRequest object containing all request infos. * @param response The HttpResponse object to use for sending a Http response. */ finishEmptyActivity(request: HttpRequestWithIdentity, response: Response): Promise; }