Skip to main content
Version: 3.6

Module 模块

作为分解应用复杂性、支持导入导出的基本单元。目前这个版本是兼容版,只支持三种类型:扩展模块、接口应用、扩展组件。与后续产品制定的模块类型不冲突。

1. 结构声明

class Module extends BaseNode {
type: 'extension' | 'interface' | 'component' | 'connector' | 'customInterface';
version: string;
name: string = '';
title: string;
description: string;
provider: string;
externalDependencyMap: {
maven?: Array<{
groupId: string;
artifactId: string;
version: string;
}>;
};
compilerInfoMap: {
java?: Array<{
packageName: string;
className: string;
naslName: string;
type: string;
javaTypes: Map<string, string>;
}>;
js?: {
prefix: string;
};
} | Map<string, string>;
dataSources: Array<DataSource>;
structures: Array<Structure>;
enums: Array<Enum>;
logics: Array<Logic>;
interfaces: Array<AbstractInterface>;
views: Array<View>;
frontendVariables: Array<Variable>;
processes: Array<Process>;
frontends: Array<FrontendLibrary>;
configuration: Configuration;
triggerLaunchers: Array<TriggerLauncher>;
connections: Array<Connection>;
metadataTypes: Array<MetadataType>;
}