package cn.autoform.bean.flow.def;
|
|
import java.util.Collections;
|
import java.util.List;
|
import java.util.Map;
|
import java.util.Objects;
|
|
import lombok.Data;
|
import lombok.EqualsAndHashCode;
|
|
@Data
|
@EqualsAndHashCode(callSuper=false)
|
public class ProcessDefineExtend extends ProcessDefine{
|
private static final long serialVersionUID = 1L;
|
/**
|
* 版本信息集合
|
*/
|
private List<Map<String,Object>> versionSign;
|
|
/**
|
* 流程定义模板名称
|
*/
|
private String templateProcessDefName;
|
|
/**
|
* 流程定义活动集合
|
*/
|
private List<ProcessActivityDefineExtend> activity;
|
|
/**
|
* 流程定义id集合
|
*/
|
private List<Long> processDefIds;
|
|
/**
|
* 目录名称
|
*/
|
private String directoryName;
|
|
private Integer instCount;
|
|
private List<ProcessDefActivityForm> processDefActivityForm;
|
|
public List<ProcessActivityFrom> getActivityForm(String activityDefId) {
|
if(processDefActivityForm == null || processDefActivityForm.isEmpty()) {
|
return null;
|
}
|
for(ProcessDefActivityForm form : processDefActivityForm) {
|
if(Objects.equals(form.getId(), activityDefId)) {
|
return form.getPaf();
|
}
|
}
|
return Collections.EMPTY_LIST;
|
}
|
}
|