Skip to content

Commit

Permalink
Add transaction depth field
Browse files Browse the repository at this point in the history
  • Loading branch information
NV4RE committed Apr 10, 2020
1 parent 3864663 commit 7d6c74f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export interface ITransaction {
parent?: {
transactionId: string;
taskId: string;
isCompensate: boolean;
isCompensate: boolean; // If the parent task is compensate
depth: number; // depth of sub transaction (depth = 2 if it's child of child of parent) ~main transaction level = 0 and ++
};
}
1 change: 1 addition & 0 deletions src/workflow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ export interface IWorkflow {
startTime: number;
endTime: number;
workflowDefinition: IWorkflowDefinition;
transactionDepth: number;
}

0 comments on commit 7d6c74f

Please sign in to comment.