io.vertx.tp.workflow.uca.camunda.RunOn Maven / Gradle / Ivy
The newest version!
package io.vertx.tp.workflow.uca.camunda;
import cn.vertxup.workflow.cv.WfPool;
import cn.vertxup.workflow.cv.em.TodoStatus;
import io.vertx.core.Future;
import io.vertx.core.json.JsonObject;
import io.vertx.tp.workflow.atom.runtime.WTransition;
import org.camunda.bpm.engine.runtime.ProcessInstance;
/**
* @author Lang
*/
public interface RunOn {
static RunOn get() {
return WfPool.CC_RUN.pick(RunEngine::new);
}
// Start
Future startAsync(JsonObject params, WTransition transition);
// Run
Future moveAsync(JsonObject params, WTransition transition);
// Stop
Future stopAsync(TodoStatus status, WTransition transition);
// ---------------------- Running Checking -----------------------
}