-
Notifications
You must be signed in to change notification settings - Fork 27
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: anludke The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
List<WorkFlowWorkDefinition> masterWorkFlowWorkDefinitions = workFlowWorkRepository | ||
.findByWorkFlowDefinitionIdOrderByCreateDateAsc(masterWorkFlowDefinition.getId()); | ||
masterWorkFlowWorkDefinitions.forEach(workFlowWorkDefinition -> { | ||
if (workFlowWorkDefinition.getWorkDefinitionType().equals(WorkType.WORKFLOW)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you move this to an external method somehow? All these WFdefinitions are getting hard to understand due to the multiple if conditions in there?
Also, all this code is repeated after in the loop
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@eloycoto I believe it's the same comment as @pkliczewski.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
overall looks good, 2 small comments
import javax.persistence.Entity; | ||
import javax.persistence.JoinColumn; | ||
import javax.persistence.ManyToOne; | ||
import javax.persistence.*; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please expand the asterisk
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! Fixed
@@ -130,6 +139,140 @@ public synchronized WorkFlowExecution updateWorkFlow(WorkFlowExecution workFlowE | |||
return workFlowRepository.save(workFlowExecution); | |||
} | |||
|
|||
@Override | |||
public WorkFlowStatusResponseDTO getWorkFlowStatus(UUID workFlowExecutionId) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method seems to be long. Do you think it makes sense to split it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pkliczewski I'll find a way split further.
* avoid null pointer exception when subWorkflow not executed * add tests
/lgtm |
No description provided.