文档中心 > API文档

1.6.2.2.2. 实现动作执行类

public MyActionTypeManager extends com.seeyon.ctp.form.modules.trigger.FormTriggerActionTypeManager {
     public void execute(TriggerActionContext contxt) throws BusinessException{
         ...
     }
 }

Spring配置

<beans default-autowire="byName">
     <bean id="myActionTypeManager" class="MyActionTypeManager />
 </beans>

接口说明

public abstract class FormTriggerActionTypeManager {
 
     /**正文组件**/
     protected abstract void execute(TriggerActionContext contxt) throws BusinessException;
     
 }
 

入参Pojo:TriggerActionContext

    /**协同正文(如果是流程的话)**/
     protected CtpContentAll contentAll;
     /**数据记录**/
     protected FormDataMasterBean masterBean;
     /**是否是时间调度触发**/
     protected boolean isTime;
     /**触发记录模板**/
     protected FormTriggerRecord record;
     /**触发设置bean**/
     protected FormTriggerBean triggerBean;
     /**触发动作bean**/
     protected FormTriggerActionBean actionBean;
     /**触发条件bean**/
     protected FormTriggerConditionBean formConditionBean;
     protected FormTriggerConditionBean dateConditionBean;
     
     /**触发源表单*/
     protected FormBean formBean;
     /**触发源表单*/
     protected FormBean formBean;
     /**表单管理配置值,对应ConfigPage的值*/
     protected String configValue;
     /** 重复表触发时间,当前重复表的Id,格式为“重复表名|行数据Id1,行数据Id2” **/
     protected String Date_SubDataIds;