@tachybase/module-workflow
Version:
A powerful BPM tool that provides foundational support for business automation, with the capability to extend unlimited triggers and nodes.
18 lines (17 loc) • 570 B
TypeScript
import { BelongsToGetAssociationMixin, Database, HasManyGetAssociationsMixin, Model } from '@tego/server';
import JobModel from './Job';
import WorkflowModel from './Workflow';
export default class ExecutionModel extends Model {
static readonly database: Database;
id: number;
title: string;
context: any;
status: number;
createdAt: Date;
updatedAt: Date;
key: string;
workflow?: WorkflowModel;
getWorkflow: BelongsToGetAssociationMixin<WorkflowModel>;
jobs?: JobModel[];
getJobs: HasManyGetAssociationsMixin<JobModel>;
}