package com.huigou.explorer.converters.bpmn;

import com.huigou.explorer.Shape;
import com.mxgraph.model.mxCell;
import com.mxgraph.model.mxGraphModel;
import org.activiti.bpmn.model.BpmnModel;
import org.activiti.bpmn.model.FlowElement;
import org.activiti.bpmn.model.ManualTask;

import java.util.Collections;

/**
 * @author yonghuan
 */
public class ManualTaskConverter extends AbstractElementConverter implements ElementConverter {

    public ManualTaskConverter() {
        super(Collections.singletonList(Shape.MANUAL_TASK));
    }

    @Override
    protected FlowElement convertInternal(BpmnModel bpmnModel, mxGraphModel graphModel, mxCell cell) {
        ManualTask manualTask = new ManualTask();
        return manualTask;
    }
}
