WfMeetingApplyNode.java 916 B

12345678910111213141516171819202122232425262728293031
  1. package com.xjrsoft.module.liteflow.node;
  2. import cn.hutool.core.convert.Convert;
  3. import com.xjrsoft.module.oa.service.IWfMeetingApplyService;
  4. import com.yomahub.liteflow.core.NodeComponent;
  5. import org.springframework.beans.factory.annotation.Autowired;
  6. import org.springframework.stereotype.Component;
  7. import java.util.Map;
  8. /**
  9. * 会议通知
  10. */
  11. @Component("wf_meeting_apply_node")
  12. public class WfMeetingApplyNode extends NodeComponent {
  13. @Autowired
  14. private IWfMeetingApplyService meetingApplyService;
  15. @Override
  16. public void process() throws Exception {
  17. // 获取表单中数据编号
  18. Map<String, Object> params = this.getFirstContextBean();
  19. Object value = util.getFormDatKey(params,"id");
  20. Long formId = Convert.toLong(value);
  21. if (formId != null) {
  22. // 数据处理
  23. meetingApplyService.noticeParticipants(formId);
  24. }
  25. }
  26. }