📄 andjoincontinuation.java
字号:
/* * * Copyright (c) 2002, 2003 Dragos Manolescu (dam@micro-workflow.com) * * See the LICENSE file for licensing information. */package com.microworkflow.execution;import com.microworkflow.process.Workflow;import com.microworkflow.process.WorkflowContext;public class AndJoinContinuation extends JoinContinuation { protected int numberOfInputs=0; protected int counter; public AndJoinContinuation(Continuation c, Workflow w) { super(c, w); } public AndJoinContinuation(Continuation continuation) { super(continuation, continuation.getWorkflow()); } public void setNumberOfInputs(int numberOfInputs) { this.numberOfInputs = numberOfInputs; } public Continuation applyContinuationIn(WorkflowContext context) { counter = counter + 1; if (counter == numberOfInputs) { resetState(); return body; } else { return makeNullContinuation(); } } public void resetState() { super.resetState(); counter=0; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -