|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.framework.PO
org.compiere.model.X_AD_WF_Process
org.compiere.wf.MWFProcess
public class MWFProcess
Workflow Process
| Field Summary |
|---|
| Fields inherited from class org.compiere.model.X_AD_WF_Process |
|---|
accessLevel, AD_USER_ID_AD_Reference_ID, Model, Table_ID, Table_Name, updatedMS, WFSTATE_Aborted, WFSTATE_AD_Reference_ID, WFSTATE_Completed, WFSTATE_NotStarted, WFSTATE_Running, WFSTATE_Suspended, WFSTATE_Terminated |
| Fields inherited from class org.compiere.framework.PO |
|---|
ACCESSLEVEL_ALL, ACCESSLEVEL_CLIENT, ACCESSLEVEL_CLIENTORG, ACCESSLEVEL_ORG, ACCESSLEVEL_SYSTEM, ACCESSLEVEL_SYSTEMCLIENT, ENTITYTYPE_Dictionary, ENTITYTYPE_UserMaintained, I_ZERO, log, p_changeVO, p_info, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID |
| Constructor Summary | |
|---|---|
MWFProcess(Ctx ctx,
int AD_WF_Process_ID,
String trxName)
Standard Constructor |
|
MWFProcess(Ctx ctx,
ResultSet rs,
String trxName)
Load Constructor |
|
MWFProcess(MWorkflow wf,
ProcessInfo pi)
New Constructor |
|
| Method Summary | |
|---|---|
void |
checkActivities()
Check Status of Activities |
String[] |
getActionOptions()
Get Action Options |
MWFActivity[] |
getActivities(boolean requery,
boolean onlyActive)
Get active Activities of Process |
PO |
getPO()
Get Persistent Object |
String |
getProcessMsg()
Get Runtime (Error) Message |
StateEngine |
getState()
Get State |
boolean |
perform(String action)
Perform Action |
void |
setAD_WF_Responsible_ID()
Set Workflow Responsible. |
void |
setProcessMsg(String msg)
Set Runtime (Error) Message |
void |
setTextMsg(PO po)
Set Text Msg (add to existing) |
void |
setTextMsg(String TextMsg)
Set Text Msg (add to existing) |
void |
setWFState(String WFState)
Set Process State and update Actions |
boolean |
startWork()
Start WF Execution async |
String |
toString()
String Representation |
| Methods inherited from class org.compiere.model.X_AD_WF_Process |
|---|
get_AccessLevel, getAD_Message_ID, getAD_Table_ID, getAD_User_ID, getAD_WF_Process_ID, getAD_WF_Responsible_ID, getAD_Workflow_ID, getKeyNamePair, getPriority, getRecord_ID, getTextMsg, getWFState, initPO, isProcessed, isProcessing, isWFStateValid, setAD_Message_ID, setAD_Table_ID, setAD_User_ID, setAD_WF_Process_ID, setAD_WF_Responsible_ID, setAD_Workflow_ID, setPriority, setProcessed, setProcessing, setRecord_ID |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MWFProcess(Ctx ctx,
int AD_WF_Process_ID,
String trxName)
ctx - contextAD_WF_Process_ID - processtrxName - transaction
public MWFProcess(Ctx ctx,
ResultSet rs,
String trxName)
ctx - contextrs - result settrxName - transaction
public MWFProcess(MWorkflow wf,
ProcessInfo pi)
throws Exception
wf - workflowpi - Process Info (Record_ID)
Exception| Method Detail |
|---|
public MWFActivity[] getActivities(boolean requery,
boolean onlyActive)
requery - if true requeryonlyActive - only active activities
public StateEngine getState()
public String[] getActionOptions()
public void setWFState(String WFState)
setWFState in class X_AD_WF_ProcessWFState - public void checkActivities()
trxName - transactionpublic void setAD_WF_Responsible_ID()
public boolean perform(String action)
action - StateEngine.ACTION_*
public boolean startWork()
public PO getPO()
public void setTextMsg(PO po)
po - base objectpublic void setTextMsg(String TextMsg)
setTextMsg in class X_AD_WF_ProcessTextMsg - msgpublic void setProcessMsg(String msg)
msg - messagepublic String getProcessMsg()
public String toString()
toString in class X_AD_WF_Process
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||