决策判断金额的时候出现错误

路由决策的内容:${moneyCount}>1000?"大于1000":"小于等于1000"
完成流程的参数:moneyCount 1100 Int
按照视频的教程做的;
求大神解答;Caused by: java.lang.IllegalArgumentException: Sequence flow [${moneyCount}>1000?"大于1000":"小于等于1000"] is not exist!
    at com.bstek.uflo.process.node.DecisionNode.leave(DecisionNode.java:42)
    at com.bstek.uflo.process.flow.SequenceFlowImpl.execute(SequenceFlowImpl.java:61)
    at com.bstek.uflo.process.node.Node.leaveNode(Node.java:76)
    at com.bstek.uflo.process.node.TaskNode.leave(TaskNode.java:573)
    at com.bstek.uflo.command.impl.CompleteTaskCommand.execute(CompleteTaskCommand.java:84)
    at com.bstek.uflo.command.impl.CompleteTaskCommand.execute(CompleteTaskCommand.java:28)
    at com.bstek.uflo.command.impl.SpringTransactionCommandService$1.doInTransaction(SpringTransactionCommandService.java:37)
    at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133)
    at com.bstek.uflo.command.impl.SpringTransactionCommandService.executeCommand(SpringTransactionCommandService.java:35)
    at com.bstek.uflo.service.impl.DefaultTaskService.complete(DefaultTaskService.java:176)
    at com.bstek.uflo.service.impl.DefaultTaskService.complete(DefaultTaskService.java:180)
    at com.bstek.uflo.console.view.ProcessMaintain.completeTask(ProcessMaintain.java:291)
    ... 99 more
 
已邀请:

Jacky - 规则

赞同来自: zzjack

异常提示已经很明显了,检查你的规则流中“${moneyCount}>1000?"大于1000":"小于等于1000"”的写法,表达式要写到${}当中,比如你这里应该是:
${moneyCount>1000?"大于1000":"小于等于1000"}

zzjack - 90后,黄金级程序猿

赞同来自:

thanks,这次自己粗心了,完美解决。(*_*)

要回复问题请先登录注册