
META-INF.resources.designer.js.definition-builder.DefinitionBuilderContext.tsx Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.liferay.portal.workflow.kaleo.designer.web Show documentation
Show all versions of com.liferay.portal.workflow.kaleo.designer.web Show documentation
Liferay Portal Workflow Kaleo Designer Web
The newest version!
/**
* SPDX-FileCopyrightText: (c) 2024 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
import React, {ReactNode, createContext} from 'react';
import {Elements} from 'react-flow-renderer';
interface DefinitionBuilderContextProviderProps {
accountEntryId: string;
active: boolean;
alertMessage: string;
alertType: string | null;
allowScriptContentToBeExecutedOrIncluded: boolean;
blockingError: {
errorType: string;
};
children?: ReactNode;
currentError: any;
definitionDescription: string;
definitionInfo: DefinitionInfo;
definitionName: string;
definitionTitle: string;
definitionTitleTranslations: Liferay.Language.FullyLocalizedValue;
deserialize: boolean;
elements: Elements[];
functionActionExecutors: any[];
hadGroovyJavaScriptBefore: boolean;
hasGroovyJavaScript: boolean;
scriptManagementConfigurationPortletURL: string;
setAccountEntryId: () => void;
setActive: () => void;
setAlertMessage: (value: string) => void;
setAlertType: (value: string) => void;
setBlockingError: () => void;
setCurrentError: () => void;
setDefinitionDescription: () => void;
setDefinitionId: () => void;
setDefinitionName: (value: string) => void;
setDefinitionTitleTranslations: () => void;
setDeserialize: () => void;
setElements: () => void;
setHadGroovyJavaScriptBefore: () => void;
setHasGroovyJavaScript: () => void;
setScriptManagementConfigurationPortletURL: () => void;
setShowAlert: (value: boolean) => void;
setWorkflowDefinitionVersions: React.Dispatch<
React.SetStateAction
>;
showAlert: boolean;
showDefinitionInfo: boolean;
sourceView: boolean;
statuses: LabelValueObject[];
timeZoneId: string;
workflowDefinitionVersions: WorkflowDefinitionVersion[];
}
const DefinitionBuilderContext = createContext(
{} as DefinitionBuilderContextProviderProps
);
const DefinitionBuilderContextProvider = ({
children,
...props
}: DefinitionBuilderContextProviderProps) => {
return (
{children}
);
};
export {DefinitionBuilderContext, DefinitionBuilderContextProvider};
© 2015 - 2025 Weber Informatics LLC | Privacy Policy