UpdateWorkflowExecutionDTO updateWorkflowExecutionDTO = new UpdateWorkflowExecutionDTO() WorkflowExecutionStatus previousStatus = workflowExecution.status updateWorkflowExecutionDTO.updatedExecution = updateWorkflowExecutionV2(workflowExecution, updateWorkflowExecutionView) updateWorkflowExecutionDTO.isRateLimitedProcessingAllowed = previousStatus == RUNNING && updateWorkflowExecutionView.status == ACTION_NEEDED updateWorkflowExecutionDTO
code to explanationTue, 24 Jan 2023