Skip to content

Commit

Permalink
Index running workflow. (#45)
Browse files Browse the repository at this point in the history
Co-authored-by: manan164 <[email protected]>
  • Loading branch information
manan164 and manan164 authored Nov 5, 2023
1 parent f0adb71 commit af0c5c4
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,8 @@ public void createOrUpdateWorkflow(WorkflowModel workflow) {
indx++, connection.createArrayOf("text", indexData.toArray(new String[0])));
statement.setString(indx++, workflow.getCreatedBy());

String workflowJson = null;
if (workflow.getStatus().isTerminal()) {
workflowJson = objectMapper.writeValueAsString(workflow);
}
String workflowJson = objectMapper.writeValueAsString(workflow);

statement.setString(indx++, workflowJson);
// Update values
statement.setLong(indx++, updatedTime);
Expand Down

0 comments on commit af0c5c4

Please sign in to comment.