All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.netgrif.application.engine.workflow.service.interfaces.IDataService Maven / Gradle / Ivy

Go to download

System provides workflow management functions including user, role and data management.

There is a newer version: 6.3.3
Show newest version
package com.netgrif.application.engine.workflow.service.interfaces;

import com.fasterxml.jackson.databind.node.ObjectNode;
import com.netgrif.application.engine.files.throwable.StorageException;
import com.netgrif.application.engine.petrinet.domain.dataset.*;
import com.netgrif.application.engine.workflow.domain.Case;
import com.netgrif.application.engine.workflow.domain.Task;
import com.netgrif.application.engine.workflow.domain.eventoutcomes.dataoutcomes.GetDataEventOutcome;
import com.netgrif.application.engine.workflow.domain.eventoutcomes.dataoutcomes.GetDataGroupsEventOutcome;
import com.netgrif.application.engine.workflow.domain.eventoutcomes.dataoutcomes.SetDataEventOutcome;
import com.netgrif.application.engine.workflow.service.FileFieldInputStream;
import org.springframework.data.domain.Page;
import org.springframework.web.multipart.MultipartFile;

import java.io.FileNotFoundException;
import java.io.InputStream;
import java.util.List;
import java.util.Locale;
import java.util.Map;

public interface IDataService {

    GetDataEventOutcome getData(String taskId);

    GetDataEventOutcome getData(String taskId, Map params);

    GetDataEventOutcome getData(Task task, Case useCase);

    GetDataEventOutcome getData(Task task, Case useCase, Map params);

    SetDataEventOutcome setData(String taskId, ObjectNode values);

    SetDataEventOutcome setData(String taskId, ObjectNode values, Map params);

    SetDataEventOutcome setData(Task task, ObjectNode values);

    SetDataEventOutcome setData(Task task, ObjectNode values, Map params);

    FileFieldInputStream getFile(Case useCase, Task task, FileField field, boolean forPreview) throws FileNotFoundException;

    FileFieldInputStream getFile(Case useCase, Task task, FileField field, boolean forPreview, Map params) throws FileNotFoundException;

    FileFieldInputStream getFileByName(Case useCase, FileListField field, String name) throws FileNotFoundException;

    FileFieldInputStream getFileByName(Case useCase, FileListField field, String name, Map params) throws FileNotFoundException;

    FileFieldInputStream getFileByTask(String taskId, String fieldId, boolean forPreview) throws FileNotFoundException;

    FileFieldInputStream getFileByTaskAndName(String taskId, String fieldId, String name) throws FileNotFoundException;

    FileFieldInputStream getFileByTaskAndName(String taskId, String fieldId, String name, Map params) throws FileNotFoundException;

    FileFieldInputStream getFileByCase(String caseId, Task task, String fieldId, boolean forPreview) throws FileNotFoundException;

    FileFieldInputStream getFileByCaseAndName(String caseId, String fieldId, String name) throws FileNotFoundException;

    FileFieldInputStream getFileByCaseAndName(String caseId, String fieldId, String name, Map params) throws FileNotFoundException;

    InputStream download(FileListField field, FileFieldValue name) throws StorageException, FileNotFoundException;

    SetDataEventOutcome saveFile(String taskId, String fieldId, MultipartFile multipartFile);

    SetDataEventOutcome saveFile(String taskId, String fieldId, MultipartFile multipartFile, Map params);

    SetDataEventOutcome saveFiles(String taskId, String fieldId, MultipartFile[] multipartFile);

    SetDataEventOutcome saveFiles(String taskId, String fieldId, MultipartFile[] multipartFile, Map params);

    SetDataEventOutcome deleteFile(String taskId, String fieldId);

    SetDataEventOutcome deleteFile(String taskId, String fieldId, Map params);

    SetDataEventOutcome deleteFileByName(String taskId, String fieldId, String name);

    SetDataEventOutcome deleteFileByName(String taskId, String fieldId, String name, Map params);

    GetDataGroupsEventOutcome getDataGroups(String taskId, Locale locale);

    Page setImmediateFields(Page tasks);

    List getImmediateFields(Task task);

    UserFieldValue makeUserFieldValue(String id);

    Case applyFieldConnectedChanges(Case useCase, String fieldId);

    Case applyFieldConnectedChanges(Case useCase, Field field);

    void validateCaseRefValue(List value, List allowedNets) throws IllegalArgumentException;

//    void validateTaskRefValue(List value, String restrictedTaskId) throws IllegalArgumentException;

    SetDataEventOutcome changeComponentProperties(Case useCase, String transitionId, String fieldId, Map properties);

    SetDataEventOutcome changeComponentProperties(Case useCase, Task task, String fieldId, Map properties);

    SetDataEventOutcome changeComponentProperties(Case useCase, String fieldId, Map properties);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy