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

com.centurylink.mdw.dataaccess.ProcessLoader Maven / Gradle / Ivy

There is a newer version: 6.1.39
Show newest version
/*
 * Copyright (C) 2017 CenturyLink, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.centurylink.mdw.dataaccess;

import com.centurylink.mdw.model.asset.Asset;
import com.centurylink.mdw.model.event.ExternalEvent;
import com.centurylink.mdw.model.task.TaskCategory;
import com.centurylink.mdw.model.task.TaskTemplate;
import com.centurylink.mdw.model.variable.VariableType;
import com.centurylink.mdw.model.workflow.ActivityImplementor;
import com.centurylink.mdw.model.workflow.Package;
import com.centurylink.mdw.model.workflow.Process;
import com.centurylink.mdw.util.timer.ProgressMonitor;

import java.util.List;

/**
 * common interface for all process loading
 */
public interface ProcessLoader {

    Package loadPackage(Long packageId, boolean deep)
    throws DataAccessException;

    Package getPackage(String name)
    throws DataAccessException;

    List getPackageList(boolean deep, ProgressMonitor progressMonitor)
    throws DataAccessException;

    List getProcessList(boolean withArchived)
    throws DataAccessException;

    Process loadProcess(Long processID, boolean withSubProcesses)
    throws DataAccessException;

    Process getProcessBase(String name, int version)
    throws DataAccessException;

    List loadExternalEvents()
    throws DataAccessException;

    List getTaskTemplates()
    throws DataAccessException;

    List getActivityImplementors()
    throws DataAccessException;

    List getVariableTypes()
    throws DataAccessException;

    List getTaskCategories()
    throws DataAccessException;

    List getAssets()
    throws DataAccessException;

    Asset getAsset(Long assetId)
    throws DataAccessException;

    Asset getAsset(String name, String language, int version)
    throws DataAccessException;

    Asset getAsset(Long packageId, String name)
    throws DataAccessException;

    Asset getAssetForOwner(String ownerType, Long ownerId)
    throws DataAccessException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy