import { BaseElement, DataInputAssociation, DataOutputAssociation } from '.'; import { BpmnType } from '../Constants'; /** * Base for all FlowNodes. * These include Events, Gateways and Activities. */ export type FlowNode = BaseElement & { readonly bpmnType: BpmnType; name: string; /** * A list of all incoming sequence flow IDs. */ incoming: Array; /** * A list of all outgoing sequence flow IDs. */ outgoing: Array; /** * A list of all DataInputAssociations. * DataInputAssociations point to a DataStore or DataSource that the FlowNode requires data from. */ dataInputAssociations?: Array; /** * A list of all DataOutputAssociations. * DataOutputAssociations point to a DataStore or DataSource that the FlowNode will write to after finishing */ dataOutputAssociations?: Array; /** * The script that is run before the FlowNode starts execution. */ preScript?: string; /** * The script that is run after the FlowNode has finished execution. */ postScript?: string; };