Skip to content

Commit c6cc404

Browse files
lixingwangFrank Martinez
authored and
Frank Martinez
committed
keep previous order that expr otherwise running first
1 parent 24eb94d commit c6cc404

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

model/simple/taskbehavior.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,8 @@ func (tb *TaskBehavior) Done(ctx model.TaskContext) (notifyFlow bool, taskEntrie
240240
//Otherwise branch while no expression link to follow
241241
if exprOtherwiseLinkInst != nil && hasExprLink && !exprLinkFollowed {
242242
exprOtherwiseLinkInst.SetStatus(model.LinkStatusTrue)
243-
exprOtherwiseTaskEntry.EnterCode = 0
243+
//TODO For now keep previous order, otherwise running first.
244+
exprOtherwiseTaskEntry.EnterCode = 2
244245
if logger.DebugEnabled() {
245246
logger.Debugf("Task '%s': Following Otherwise Link to task '%s'", ctx.Task().ID(), exprOtherwiseLinkInst.Link().ToTask().ID())
246247
}

0 commit comments

Comments
 (0)