primitivecontinuation.java

来自「一个很好的微工作流内核」· Java 代码 · 共 38 行

JAVA
38
字号
/* * 	  *  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.WorkflowContext;public class PrimitiveContinuation extends Continuation {	protected Performer performer;	protected String resultKey = null;	protected String targetKey = null;	public PrimitiveContinuation(Continuation continuation) {		super(continuation);	}	public Continuation applyContinuationIn(WorkflowContext context) {		performer.setTargetKey(targetKey);		performer.setResultKey(resultKey);		performer.setContext(context);		performer.performOperation();		return getNextContinuation();	}	public void setPerformer(Performer performer) {		this.performer = performer;	}	public void setResultKey(String resultKey) {		this.resultKey = resultKey;	}	public void setTargetKey(String targetKey) {		this.targetKey = targetKey;	}}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?