fix: 修复el表达式无法修改
This commit is contained in:
@@ -34,4 +34,6 @@ public class TaskTemplate extends SimpleEntity {
|
|||||||
private String chain;
|
private String chain;
|
||||||
@Column(nullable = false)
|
@Column(nullable = false)
|
||||||
private String expression;
|
private String expression;
|
||||||
|
@Column(nullable = false)
|
||||||
|
private String expressionEl;
|
||||||
}
|
}
|
||||||
@@ -31,7 +31,8 @@ public class TaskTemplateController extends SimpleControllerSupport<TaskTemplate
|
|||||||
template.setDescription(item.description());
|
template.setDescription(item.description());
|
||||||
template.setApplication(application);
|
template.setApplication(application);
|
||||||
template.setChain(IdUtil.simpleUUID());
|
template.setChain(IdUtil.simpleUUID());
|
||||||
template.setExpression(StrUtil.format("CATCH(THEN(task_start, ({}), task_end)).DO(task_error)", item.expression()));
|
template.setExpression(item.expression());
|
||||||
|
template.setExpressionEl(StrUtil.format("CATCH(THEN(task_start, ({}), task_end)).DO(task_error)", item.expression()));
|
||||||
return template;
|
return template;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -44,4 +44,4 @@ liteflow:
|
|||||||
chainTableName: leopard_task_template
|
chainTableName: leopard_task_template
|
||||||
chainApplicationNameField: application
|
chainApplicationNameField: application
|
||||||
chainNameField: chain
|
chainNameField: chain
|
||||||
elDataField: expression
|
elDataField: expression_el
|
||||||
|
|||||||
Reference in New Issue
Block a user