@@ -150,7 +150,7 @@ export default class CollectionShowWorkflow extends Vue {
150150 for (const event of this .history .history ) {
151151 const details = event .details ;
152152 if (event .type === ' MarkerRecorded' ) {
153- const attrs = details .Attributes .marker_recorded_event_attributes ;
153+ const attrs = details .Attributes .MarkerRecordedEventAttributes ;
154154 if (attrs .marker_name !== ' LocalActivity' ) {
155155 continue ;
156156 }
@@ -166,7 +166,7 @@ export default class CollectionShowWorkflow extends Vue {
166166 replayed: innerDetails .ReplayTime ,
167167 };
168168 } else if (event .type === ' ActivityTaskScheduled' ) {
169- const attrs = details .Attributes .activity_task_scheduled_event_attributes ;
169+ const attrs = details .Attributes .ActivityTaskScheduledEventAttributes ;
170170 const name = attrs .activity_type .name ;
171171 if (ignoredActivities .includes (name )) {
172172 continue ;
@@ -179,13 +179,13 @@ export default class CollectionShowWorkflow extends Vue {
179179 started: details .event_time ,
180180 };
181181 } else if (event .type === ' ActivityTaskStarted' ) {
182- const attrs = details .Attributes .activity_task_started_event_attributes ;
182+ const attrs = details .Attributes .ActivityTaskStartedEventAttributes ;
183183 if (attrs .scheduled_event_id in this .activities ) {
184184 const item = this .activities [attrs .scheduled_event_id ];
185185 item .attempts = attrs .attempt ;
186186 }
187187 } else if (event .type === ' ActivityTaskFailed' ) {
188- const attrs = details .Attributes .activity_task_failed_event_attributes ;
188+ const attrs = details .Attributes .ActivityTaskFailedEventAttributes ;
189189 this .activityError = true ;
190190 if (attrs .scheduled_event_id in this .activities ) {
191191 const item = this .activities [attrs .scheduled_event_id ];
@@ -195,7 +195,7 @@ export default class CollectionShowWorkflow extends Vue {
195195 item .duration = this .duration (item .started , item .completed );
196196 }
197197 } else if (event .type === ' ActivityTaskCompleted' ) {
198- const attrs = details .Attributes .activity_task_completed_event_attributes ;
198+ const attrs = details .Attributes .ActivityTaskCompletedEventAttributes ;
199199 if (attrs .scheduled_event_id in this .activities ) {
200200 const item = this .activities [attrs .scheduled_event_id ];
201201 item .status = ' done' ;
@@ -206,7 +206,7 @@ export default class CollectionShowWorkflow extends Vue {
206206 }
207207 }
208208 } else if (event .type === ' ActivityTaskTimedOut' ) {
209- const attrs = details .Attributes .activity_task_timed_out_event_attributes ;
209+ const attrs = details .Attributes .ActivityTaskTimedOutEventAttributes ;
210210 if (attrs .scheduled_event_id in this .activities ) {
211211 const item = this .activities [attrs .scheduled_event_id ];
212212 item .status = ' timed out' ;
@@ -217,7 +217,7 @@ export default class CollectionShowWorkflow extends Vue {
217217 } else if (event .type === ' WorkflowExecutionCompleted' ) {
218218 this .completedAt = details .event_time ;
219219 } else if (event .type === ' WorkflowExecutionFailed' ) {
220- const attrs = details .Attributes .workflow_execution_failed_event_attributes ;
220+ const attrs = details .Attributes .WorkflowExecutionFailedEventAttributes ;
221221 this .workflowError = this .workflowErrorDescription (attrs .failure );
222222 this .completedAt = details .event_time ;
223223 }
@@ -253,18 +253,18 @@ export default class CollectionShowWorkflow extends Vue {
253253 const attrs: any = event .details ;
254254
255255 if (event .type === ' ActivityTaskScheduled' ) {
256- ret = ' Activity: ' + attrs .Attributes .activity_task_scheduled_event_attributes .activity_type .name ;
256+ ret = ' Activity: ' + attrs .Attributes .ActivityTaskScheduledEventAttributes .activity_type .name ;
257257 } else if (event .type === ' ActivityTaskFailed' ) {
258- const body = attrs .Attributes .activity_task_failed_event_attributes ;
258+ const body = attrs .Attributes .ActivityTaskFailedEventAttributes ;
259259 ret = JSON .stringify (body , null , 2 );
260260 } else if (event .type === ' DecisionTaskScheduled' ) {
261261 const attempt: number = parseInt (attrs .decisionTaskScheduledEventAttributes .attempt , 10 ) + 1 ;
262262 ret = ' Attempts: ' + attempt ;
263263 } else if (event .type === ' WorkflowExecutionFailed' ) {
264- const body = attrs .Attributes .workflow_execution_failed_event_attributes ;
264+ const body = attrs .Attributes .WorkflowExecutionFailedEventAttributes ;
265265 ret = JSON .stringify (body , null , 2 );
266266 } else if (event .type == ' WorkflowExecutionStarted' ) {
267- const body = attrs .Attributes .workflow_execution_started_event_attributes ;
267+ const body = attrs .Attributes .WorkflowExecutionStartedEventAttributes ;
268268 ret = JSON .stringify (body , null , 2 );
269269 }
270270
0 commit comments