ecology_maven/customization/action/demo/MM050_node688_export.java

38 lines
1.1 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package customization.action.demo;
import customization.commons.Console;
import customization.commons.CustomAction;
import weaver.interfaces.workflow.action.Action;
import weaver.soa.workflow.request.RequestInfo;
/**
* 命名规则:
* 当一只流程只有一个和SAP场景交互时接口命规则为
* 流程编号+SAP接口场景编号 例如MM050_SC_1230_FI_DocCreate_eg
*
* 当一只流程在不同节有多个SAP交互场景交互式接口命名规则为
* 流程编号_流程调用节点_nodeid 前(before)/后(after)/出口(export)/(归档前)end
*
*/
public class MM050_node688_export extends CustomAction implements Action {
private String type;
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
@Override
public String execute(RequestInfo requestInfo) {
Console.log("type:"+this.getType());
requestInfo.getRequestManager().setMessageid("90002");
requestInfo.getRequestManager().setMessagecontent("MM050_node688_before");
return Action.FAILURE_AND_CONTINUE;
}
}