Example #1
0
        protected internal virtual IList <LockedExternalTaskDto> executeFetchAndLock(FetchExternalTasksExtendedDto fetchingDto, ProcessEngine processEngine)
        {
            ExternalTaskQueryBuilder   fetchBuilder  = fetchingDto.buildQuery(processEngine);
            IList <LockedExternalTask> externalTasks = fetchBuilder.execute();

            return(LockedExternalTaskDto.fromLockedExternalTasks(externalTasks));
        }
Example #2
0
        public virtual IList <LockedExternalTaskDto> fetchAndLock(FetchExternalTasksDto fetchingDto)
        {
            ExternalTaskQueryBuilder   fetchBuilder  = fetchingDto.buildQuery(processEngine);
            IList <LockedExternalTask> externalTasks = fetchBuilder.execute();

            return(LockedExternalTaskDto.fromLockedExternalTasks(externalTasks));
        }