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

Commit

Permalink
Merge pull request #3772 from Young-Zen/fix-terminateReason-in-TERMIN…
Browse files Browse the repository at this point in the history
…ATE-task

Fix: terminateReason in TERMINATE Task can use JSONPath expression to extract value
  • Loading branch information
v1r3n authored Sep 14, 2023
2 parents 6359617 + 19c3c70 commit ac50271
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 ac50271

Please sign in to comment.