| | |
| | | package org.springblade.mdm.flow.excution.dispatch; |
| | | |
| | | import org.springblade.mdm.flow.constants.FlowContants; |
| | | import org.springblade.mdm.flow.service.FlowProgramProperties; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | |
| | | public class DataHandlerHelper { |
| | | @Autowired |
| | | private NormalFinishDataHandler normalFinishDataHandler; |
| | | @Autowired |
| | | private TempFinishDataHandler tempFinishDataHandler; |
| | | |
| | | |
| | | /** |
| | | * 根据流程属性,获取数据处理器 |
| | |
| | | * @return |
| | | */ |
| | | public FinishDataHandler getDataHandler(FlowProgramProperties props){ |
| | | if(FlowContants.Y.equals(props.getIsTempFlow())){ |
| | | return normalFinishDataHandler; |
| | | }else { |
| | | return normalFinishDataHandler; |
| | | } |
| | | return normalFinishDataHandler; |
| | | } |
| | | } |