All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.vertx.tp.workflow.refine.Wf Maven / Gradle / Ivy

The newest version!
package io.vertx.tp.workflow.refine;

import cn.vertxup.workflow.cv.em.PassWay;
import io.vertx.core.json.JsonObject;
import io.horizon.uca.log.Log;
import io.horizon.uca.log.LogModule;
import org.camunda.bpm.engine.repository.ProcessDefinition;
import org.camunda.bpm.engine.task.Task;

import java.util.List;

/**
 * @author Lang
 */
public class Wf {

    /*
     * Workflow Output
     * {
     *      "definitionId": "Process Definition Id",
     *      "definitionKey": "Process Definition Key",
     *      "bpmn": "Xml format of BPMN 2.0 diagram",
     *      "name": "Process Definition Name"
     * }
     */
    public static JsonObject outBpmn(final ProcessDefinition definition) {
        return WfFlow.outBpmn(definition);
    }

    public static JsonObject outLinkage(final JsonObject linkageJ) {
        return WfFlow.outLinkage(linkageJ);
    }

    public static PassWay inGateway(final JsonObject requestJ) {
        return WfFlow.inGateway(requestJ);
    }

    public static String nameEvent(final Task task) {
        return WfFlow.nameEvent(task);
    }

    public static List taskNext(final Task task, final List source) {
        return WfFlow.taskNext(task, source);
    }

    public interface LOG {
        String MODULE = "Ροή εργασίας";

        LogModule Init = Log.modulat(MODULE).program("Init");
        LogModule Queue = Log.modulat(MODULE).program("Queue");
        LogModule Deploy = Log.modulat(MODULE).program("Deploy");
        LogModule Move = Log.modulat(MODULE).program("Move");
        LogModule Plugin = Log.modulat(MODULE).program("Plugin");
        LogModule Web = Log.modulat(MODULE).program("Web");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy