@Model.model(审批模型.MODEL_MODEL)
@Component
public class 审批模型Action {
@Function
@Function.Advanced(category = FunctionCategoryEnum.CUSTOM_DESIGNER, displayName = "测试自定义审批类型")
public WorkflowSignTypeEnum signType(String json) { // json为业务数据,可用JsonUtils转换
return WorkflowSignTypeEnum.COUNTERSIGN_ONEAGREE_ONEREJUST;
}
@Function
@Function.Advanced(category = FunctionCategoryEnum.CUSTOM_DESIGNER, displayName = "测试自定义审批名称")
public String customApprovalName() {
return UUID.randomUUID().toString();
}
}
本文来自投稿,不代表Oinone社区立场,如若转载,请注明出处:https://doc.oinone.top/backend/4847.html