package com.changhong.epc.rely.api.tool.power.function; import com.googlecode.aviator.runtime.type.AviatorObject; import com.googlecode.aviator.runtime.type.AviatorString; import java.util.Map; public class TaskFormat extends ShowButtonAbstractFunction { @Override public AviatorObject call(Map env, AviatorObject arg1) { return new AviatorString(getVal(getOrgUserId(env, arg1))); } public String getVal(String userId){ return String.format("[%s]", userId == null ? "" : userId); } @Override public String getName() { return "taskFormat"; } }