package com.huigou.explorer.converters.bpmn;

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.ReceiveTask;

import java.util.Collections;

import static com.huigou.explorer.Shape.RECEIVE_TASK;

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

    public ReceiveTaskConverter() {
        super(Collections.singletonList(RECEIVE_TASK));
    }

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