Code
export enum RuleScope {
CausalityRelationship,
FMEA,
RootArchitecture
}
export type RuleScriptContext = {
fmea: FailureModesEffectsAnalysisProxyInterface,
causalityRelationship: CausalityRelationshipProxyInterface,
getCalculatedEffectsByPath?: Function,
isSynthesis?: boolean
}
export interface RuleResult {
}
export interface RuleScriptInterface {
scope?: RuleScope,
promiseToExecute(context: RuleScriptContext): Promise<RuleResult>
}