Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
Fix: terminateReason in TERMINATE Task can use JSONPath expression to…
Browse files Browse the repository at this point in the history
… extract value
  • Loading branch information
Young-Zen committed Sep 14, 2023
1 parent 6359617 commit 19c3c70
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -458,14 +458,12 @@ private void endExecution(WorkflowModel workflow, TaskModel terminateTask) {
String terminationStatus =
(String)
terminateTask
.getWorkflowTask()
.getInputParameters()
.getInputData()
.get(Terminate.getTerminationStatusParameter());
String reason =
(String)
terminateTask
.getWorkflowTask()
.getInputParameters()
.getInputData()
.get(Terminate.getTerminationReasonParameter());
if (StringUtils.isBlank(reason)) {
reason =
Expand Down

0 comments on commit 19c3c70

Please sign in to comment.