org.cloudfoundry.multiapps.controller.process.util.ClientReleaser Maven / Gradle / Ivy
package org.cloudfoundry.multiapps.controller.process.util;
import jakarta.inject.Inject;
import jakarta.inject.Named;
import org.cloudfoundry.multiapps.controller.core.cf.CloudControllerClientProvider;
import org.cloudfoundry.multiapps.controller.process.variables.Variables;
import org.flowable.engine.HistoryService;
@Named
public class ClientReleaser {
private final CloudControllerClientProvider clientProvider;
@Inject
public ClientReleaser(CloudControllerClientProvider clientProvider) {
this.clientProvider = clientProvider;
}
public void releaseClientFor(HistoryService historyService, String processInstanceId) {
String user = HistoryUtil.getVariableValue(historyService, processInstanceId, Variables.USER.getName());
String spaceGuid = HistoryUtil.getVariableValue(historyService, processInstanceId, Variables.SPACE_GUID.getName());
clientProvider.releaseClient(user, spaceGuid);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy