public abstract class AbstractWorkflowProcess extends SucangServletRequest implements IWorkflowProcess
Modifier and Type | Field and Description |
---|---|
protected ModelMap |
dataMap |
protected IWorkflowProcess |
globalProcess
工作流全局处理接口,用于当某个工作流设置有处理接口且同时又有全局处理接口时,通过该变量获取
|
protected boolean |
isMultipart |
protected JdbcTemplate |
jdbcTemp |
protected org.apache.log4j.Logger |
logger |
protected java.io.PrintWriter |
out |
protected HttpServletRequest |
req |
protected WfRequest |
request |
protected HttpServletResponse |
response |
protected Workflow |
workflow |
DEFAULT_ENCODING, HTML_CONTENT_TYPE, innerReq, WAP_CONTENT_TYPE
Constructor and Description |
---|
AbstractWorkflowProcess() |
Modifier and Type | Method and Description |
---|---|
int |
destroy()
流程提交或流转结束的方法
|
java.lang.String |
doClientAction(HttpServletRequest request,
StepInfo currentStep)
用于获取执行流程提交或保存等触发事件的代码,代码格式为JS代码,或者是上面clientScript引用的JS函数。
|
java.lang.String[] |
getClientScript()
获取客户端浏览器用的脚本引用名称,如:["/js/workflow/officialDoc.js","/js/test1.js"]
|
protected java.io.PrintWriter |
getOut() |
java.lang.String |
getRedirectUrl()
用于其他接口操作失败时需要转向的URL地址
|
int |
init(Workflow workflow,
HttpServletRequest req,
HttpServletResponse response,
boolean isMultipart)
流程提交时初始化执行的方法
|
int |
onAbandon(boolean isRestore)
作废操作时,参数restore表示恢复废弃操作
|
int |
onBack()
退回
|
int |
onCreate(WfRequest request)
创建时
|
int |
onDelete()
删除操作时
|
int |
onRedirect()
转发
|
int |
onSave()
保存
|
boolean |
onSaveBefore(LayoutDataImpl data)
流程表单数据保存前执行的方法
|
int |
onSaveRequestAfter(boolean isCreate)
流程表单数据保存后执行的方法
|
int |
onSubmit()
提交
|
int |
onTransferAfter(StepInfo nextStep)
节点流转后的操作
|
int |
onTransferBefore(StepInfo currentStep)
节点流转前的操作处理
|
void |
setModelData(ModelMap map) |
void |
setRequest(WfRequest request) |
getArrays, getBeanMap, getBeanMap, getBoolean, getClearTypeObject, getDate, getDouble, getFloat, getID, getInputString, getInt, getLong, getParamBean, getShort, getString, getString, initRequest
protected org.apache.log4j.Logger logger
protected WfRequest request
protected Workflow workflow
protected HttpServletRequest req
protected HttpServletResponse response
protected boolean isMultipart
protected JdbcTemplate jdbcTemp
protected java.io.PrintWriter out
protected IWorkflowProcess globalProcess
protected ModelMap dataMap
public java.lang.String getRedirectUrl()
IWorkflowProcess
getRedirectUrl
in interface IWorkflowProcess
protected java.io.PrintWriter getOut()
public int init(Workflow workflow, HttpServletRequest req, HttpServletResponse response, boolean isMultipart)
IWorkflowProcess
init
in interface IWorkflowProcess
workflow
- as Workflowreq
- as HttpServletRequestresponse
- as HttpServletResponseisMultipart
- as booleanpublic final void setModelData(ModelMap map)
public int destroy()
IWorkflowProcess
destroy
in interface IWorkflowProcess
public void setRequest(WfRequest request)
setRequest
in interface IWorkflowProcess
public int onBack()
IWorkflowProcess
onBack
in interface IWorkflowProcess
public int onCreate(WfRequest request)
IWorkflowProcess
onCreate
in interface IWorkflowProcess
public int onRedirect()
IWorkflowProcess
onRedirect
in interface IWorkflowProcess
public int onSave()
IWorkflowProcess
onSave
in interface IWorkflowProcess
public int onSubmit()
IWorkflowProcess
onSubmit
in interface IWorkflowProcess
public int onDelete()
IWorkflowProcess
onDelete
in interface IWorkflowProcess
public int onAbandon(boolean isRestore)
IWorkflowProcess
onAbandon
in interface IWorkflowProcess
public int onTransferAfter(StepInfo nextStep)
IWorkflowProcess
onTransferAfter
in interface IWorkflowProcess
public int onTransferBefore(StepInfo currentStep)
IWorkflowProcess
onTransferBefore
in interface IWorkflowProcess
currentStep
- as StepInfopublic boolean onSaveBefore(LayoutDataImpl data)
IWorkflowProcess
onSaveBefore
in interface IWorkflowProcess
public int onSaveRequestAfter(boolean isCreate)
IWorkflowProcess
onSaveRequestAfter
in interface IWorkflowProcess
public java.lang.String doClientAction(HttpServletRequest request, StepInfo currentStep)
IWorkflowProcess
doClientAction
in interface IWorkflowProcess
request
- as HttpServletRequestcurrentStep
- as StepInfopublic java.lang.String[] getClientScript()
IWorkflowProcess
getClientScript
in interface IWorkflowProcess
Copyright © 2019 by Sucang.cn