|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.model.PO
org.compiere.model.X_AD_Workflow
org.compiere.wf.MWorkflow
public class MWorkflow
WorkFlow Model
| Field Summary |
|---|
| Fields inherited from class org.compiere.model.PO |
|---|
ACCESSLEVEL_ALL, ACCESSLEVEL_CLIENT, ACCESSLEVEL_CLIENTORG, ACCESSLEVEL_ORG, ACCESSLEVEL_SYSTEM, ACCESSLEVEL_SYSTEMCLIENT, ENTITYTYPE_Dictionary, ENTITYTYPE_UserMaintained, I_ZERO, log, p_ctx, p_info, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID |
| Constructor Summary | |
|---|---|
MWorkflow(Properties ctx,
int AD_Workflow_ID,
String trxName)
Create/Load Workflow |
|
MWorkflow(Properties ctx,
ResultSet rs,
String trxName)
Load Constructor |
|
| Method Summary | |
|---|---|
protected boolean |
afterSave(boolean newRecord,
boolean success)
After Save. |
protected boolean |
beforeSave(boolean newRecord)
Before Save |
static MWorkflow |
get(Properties ctx,
int AD_Workflow_ID)
Get Workflow from Cache |
String |
getDescription(boolean translated)
Get Description |
static MWorkflow[] |
getDocValue(Properties ctx,
int AD_Client_ID,
int AD_Table_ID,
String trxName)
Get Doc Value Workflow |
long |
getDurationBaseSec()
Get Duration Base in Seconds |
int |
getDurationCalendarField()
Get Duration CalendarField |
MWFNode |
getFirstNode()
Get the first node |
String |
getHelp(boolean translated)
Get Help |
int |
getLast(int AD_WF_Node_ID,
int AD_Client_ID)
Get very Last Node |
String |
getName(boolean translated)
Get Name |
int |
getNext(int AD_WF_Node_ID,
int AD_Client_ID)
Get first transition (Next Node) of ID |
MWFNode[] |
getNextNodes(int AD_WF_Node_ID,
int AD_Client_ID)
Get the next nodes |
protected MWFNode |
getNode(int AD_WF_Node_ID)
Get Node with ID in Workflow |
int |
getNodeCount()
Get Number of Nodes |
MWFNodeNext[] |
getNodeNexts(int AD_WF_Node_ID,
int AD_Client_ID)
Get Transitions (NodeNext) of ID |
MWFNode[] |
getNodes(boolean ordered,
int AD_Client_ID)
Get the nodes |
int |
getPrevious(int AD_WF_Node_ID,
int AD_Client_ID)
Get (first) Previous Node of ID |
boolean |
isFirst(int AD_WF_Node_ID,
int AD_Client_ID)
Is this the first Node |
boolean |
isLast(int AD_WF_Node_ID,
int AD_Client_ID)
Is this the last Node |
static void |
main(String[] args)
main |
MWFProcess |
start(ProcessInfo pi)
Deprecated. |
MWFProcess |
start(ProcessInfo pi,
String trxName)
Start Workflow. |
MWFProcess |
startWait(ProcessInfo pi)
Start Workflow and Wait for completion. |
String |
toString()
String Representation |
String |
validate()
Validate workflow. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.compiere.model.I_Persistent |
|---|
save |
| Constructor Detail |
|---|
public MWorkflow(Properties ctx,
int AD_Workflow_ID,
String trxName)
ctx - ContextAD_Workflow_ID - IDtrxName - transaction
public MWorkflow(Properties ctx,
ResultSet rs,
String trxName)
ctx - contextrs - result settrxName - transaction| Method Detail |
|---|
public static MWorkflow get(Properties ctx,
int AD_Workflow_ID)
ctx - contextAD_Workflow_ID - id
public static MWorkflow[] getDocValue(Properties ctx,
int AD_Client_ID,
int AD_Table_ID,
String trxName)
ctx - contextAD_Client_ID - clientAD_Table_ID - table
public int getNodeCount()
public MWFNode[] getNodes(boolean ordered,
int AD_Client_ID)
ordered - ordered arrayAD_Client_ID - for client
public MWFNode getFirstNode()
protected MWFNode getNode(int AD_WF_Node_ID)
AD_WF_Node_ID - ID
public MWFNode[] getNextNodes(int AD_WF_Node_ID,
int AD_Client_ID)
AD_WF_Node_ID - IDAD_Client_ID - for client
public int getNext(int AD_WF_Node_ID,
int AD_Client_ID)
AD_WF_Node_ID - idAD_Client_ID - for client
public MWFNodeNext[] getNodeNexts(int AD_WF_Node_ID,
int AD_Client_ID)
AD_WF_Node_ID - idAD_Client_ID - for client
public int getPrevious(int AD_WF_Node_ID,
int AD_Client_ID)
AD_WF_Node_ID - idAD_Client_ID - for client
public int getLast(int AD_WF_Node_ID,
int AD_Client_ID)
AD_WF_Node_ID - ignoredAD_Client_ID - for client
public boolean isFirst(int AD_WF_Node_ID,
int AD_Client_ID)
AD_WF_Node_ID - idAD_Client_ID - for client
public boolean isLast(int AD_WF_Node_ID,
int AD_Client_ID)
AD_WF_Node_ID - idAD_Client_ID - for client
public String getName(boolean translated)
translated - translated
public String getDescription(boolean translated)
translated - translated
public String getHelp(boolean translated)
translated - translated
public String toString()
toString in class X_AD_Workflowprotected boolean beforeSave(boolean newRecord)
beforeSave in class POnewRecord - new
protected boolean afterSave(boolean newRecord,
boolean success)
afterSave in class POnewRecord - new recordsuccess - success
public MWFProcess start(ProcessInfo pi)
pi - Process Info (Record_ID)
public MWFProcess start(ProcessInfo pi,
String trxName)
pi - Process Info (Record_ID)
public MWFProcess startWait(ProcessInfo pi)
pi - process info with Record_ID record for the workflow
public long getDurationBaseSec()
public int getDurationCalendarField()
public String validate()
public static void main(String[] args)
args -
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||