package com.lego.flowable.vo;

import com.lego.core.util.StringUtil;
import com.lego.core.vo.VO;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.collections4.map.HashedMap;

import java.util.Map;

@Getter
@Setter
public class FlowableTaskCompleteVO extends VO {

    private String id;
    private String comment;
    private Map<String, Object> variables = new HashedMap<>();

    public String getStringValue(String key) {
        Object value = variables.get(key);
        return StringUtil.toString(value);
    }
}
