|
|
@@ -5,6 +5,7 @@ import com.ruoyi.interfaces.domain.MdModelStep;
|
|
|
import com.ruoyi.interfaces.domain.MdModelStepExecution;
|
|
|
import com.ruoyi.interfaces.service.MdModelStepExecutionService;
|
|
|
import com.ruoyi.interfaces.workflow.ExecutionContext;
|
|
|
+import kotlin.collections.builders.MapBuilder;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.context.expression.MapAccessor;
|
|
|
@@ -13,6 +14,7 @@ import org.springframework.expression.spel.standard.SpelExpressionParser;
|
|
|
import org.springframework.expression.spel.support.StandardEvaluationContext;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
+import java.util.HashMap;
|
|
|
import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
@@ -45,7 +47,11 @@ public class ConditionStepExecutor implements StepExecutor {
|
|
|
String expression = config.get("expression").toString();
|
|
|
boolean judge = isPremiumPackage(expression, context);
|
|
|
context.setContextValue("CONDITION_RESULT", judge);
|
|
|
- stepExecution.markSuccess(Map.of("CONDITION_RESULT", judge));
|
|
|
+
|
|
|
+ Map<String, Object> output = new HashMap<>();
|
|
|
+ output.put("CONDITION_RESULT", judge);
|
|
|
+
|
|
|
+ stepExecution.markSuccess(output);
|
|
|
stepExecutionService.saveOrUpdate(stepExecution);
|
|
|
return stepExecution;
|
|
|
}
|