<%--
/**
 * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
 *
 * The contents of this file are subject to the terms of the Liferay Enterprise
 * Subscription License ("License"). You may not use this file except in
 * compliance with the License. You can obtain a copy of the License by
 * contacting Liferay, Inc. See the License for the specific language governing
 * permissions and limitations under the License, including but not limited to
 * distribution rights of the Software.
 *
 *
 *
 */
--%>

<%
String processCmd = null;

if (exportImportConfigurationId > 0) {
	ExportImportConfiguration exportImportConfiguration = ExportImportConfigurationLocalServiceUtil.getExportImportConfiguration(exportImportConfigurationId);

	contextMap = exportImportConfiguration.getSettingsMap();
}

Map<String, String[]> parameterMap = (Map<String, String[]>)contextMap.get("parameterMap");

if (parameterMap != null) {
	processCmd = MapUtil.getString(parameterMap, "cmd");
}
%>

<c:if test="<%= backgroundTask.isCompleted() && Validator.isNotNull(processCmd) %>">
	<liferay-staging:process-summary-link
		backgroundTaskId="<%= backgroundTask.getBackgroundTaskId() %>"
	/>
</c:if>