// 覆写父类的跳过执行方法
protected void skipExecute(ExecutionContext executionContext) {
SkipStrategy skipStrategy = executionContext.getSkipStrategy();
SkipAssignee skipAssignee = skipStrategy.getSkipAssignee();
SkipComment skipComment = skipStrategy.getSkipComment();
String skipAssigneeString = null;
String skipCommentString = null;
if (skipAssignee != null && skipAssignee.getExpression() != null) {
if (skipAssignee.getExpression().getValue() != null && !skipAssignee.getExpression().getValue().equals("")) {
try {
skipAssigneeString = StringUtil.getString(ExpressionMgmt.execute(skipAssignee.getExpression().getValue(),
executionContext));
} catch (Exception e) {
throw new FixFlowException("节点 " + this.getId() + " " + this.getName() + " 的跳过策略出错请检查流程配置!", e);
}
}
}
if (skipComment != null && skipComment.getExpression() != null) {
if (skipComment.getExpression().getValue() != null && !skipComment.getExpression().getValue().equals("")) {
try {
skipCommentString = StringUtil.getString(ExpressionMgmt.execute(skipComment.getExpression().getValue(),
executionContext));
} catch (Exception e) {
throw new FixFlowException("节点 " + this.getId() + " " + this.getName() + " 的跳过策略出错请检查流程配置!", e);