@5minds/processcube_engine
Version:
The ProcessCube Engine. Stores and executes BPMNs.
44 lines (43 loc) • 1.9 kB
TypeScript
import { SequelizeOptions } from 'sequelize-typescript';
import { EngineConfiguration, PoolConfig } from '@5minds/processcube_engine_sdk';
export declare const workerThreadIds: {
main: string;
fetchAndLock: string;
query: string;
runtime: string;
};
export declare const workerThreadNames: {
main: string;
fetchAndLock: string;
query: string;
runtime: string;
};
export interface IApplicationInfo {
name: string;
packageName: string;
version: string;
}
export type DatabaseConfig = SequelizeOptions & {
schema?: string;
};
export declare function registerOnBeforeResumingCallback(callback: () => void | Promise<void>): void;
export declare function clearOnReadyCallbacks(): void;
export declare function registerOnReadyCallback(callback: () => void | Promise<void>): void;
export declare function getOnBeforeResumingCallbacks(): Array<() => void | Promise<void>>;
export declare function getOnReadyCallbacks(): Array<() => void | Promise<void>>;
export declare function isSQLite(): boolean;
export declare function isWindows(): boolean;
export declare function getBeautifiedThreadName(): string;
export declare function getThreadName(): string;
export declare function getExtensionDir(): string;
export declare function isWindowsAndSQLite(): boolean;
export declare function loadConfig(workerName?: string): Promise<void>;
export declare function calculateMaxPoolSize(dbPoolConfig: PoolConfig): number;
export declare function getSqlitePath(): string;
export declare function getUserConfigFolder(): string;
export declare function readConfigFile(): EngineConfiguration;
export declare function getConfig(): EngineConfiguration;
export declare function getReleaseChannel(): string;
export declare function readPackageJson(): IApplicationInfo;
export declare function setWorkingDirectory(): void;
export declare function getWorkingDirectory(): string;