import { ExternalTaskState } from '../ExternalTask/ExternalTask'; import { FlowNodeInstance } from './FlowNodeInstance'; export type BusinessRuleTaskInstance = FlowNodeInstance & { businessRuleTaskData?: BusinessRuleTaskData; }; export type BusinessRuleTaskData = { externalTaskId: string; topic: string; state: ExternalTaskState; isSingleTry: boolean; payload: any; workerId?: string; lockExpirationTime?: Date; result?: any; error?: any; finishedAt?: Date; };