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

org.cloudfoundry.multiapps.controller.process.util.OperationFileIdsUtil Maven / Gradle / Ivy

There is a newer version: 1.183.0
Show newest version
package org.cloudfoundry.multiapps.controller.process.util;

import java.util.List;

import org.apache.commons.lang3.ArrayUtils;
import org.cloudfoundry.multiapps.controller.process.variables.VariableHandling;
import org.cloudfoundry.multiapps.controller.process.variables.Variables;
import org.flowable.engine.delegate.DelegateExecution;

public final class OperationFileIdsUtil {

    private OperationFileIdsUtil() {

    }

    public static List getOperationFileIds(DelegateExecution execution) {
        String appArchiveId = VariableHandling.get(execution, Variables.APP_ARCHIVE_ID);
        String extensionDescriptorId = VariableHandling.get(execution, Variables.EXT_DESCRIPTOR_FILE_ID);
        String[] appArchiveIds = appArchiveId != null ? appArchiveId.split(",") : new String[0];
        String[] extensionDescriptorIds = extensionDescriptorId != null ? extensionDescriptorId.split(",") : new String[0];
        return List.of(ArrayUtils.addAll(appArchiveIds, extensionDescriptorIds));
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy