|
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_WF_Activity
org.compiere.wf.MWFActivity
public class MWFActivity
Workflow Activity Model. Controlled by WF Process: set Node - startWork
| Field Summary |
|---|
| Fields inherited from class org.compiere.model.X_AD_WF_Activity |
|---|
AD_USER_ID_AD_Reference_ID, WFSTATE_Aborted, WFSTATE_AD_Reference_ID, WFSTATE_Completed, WFSTATE_NotStarted, WFSTATE_Running, WFSTATE_Suspended, WFSTATE_Terminated |
| 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 | |
|---|---|
MWFActivity(MWFProcess process,
int AD_WF_Node_ID)
Parent Contructor |
|
MWFActivity(MWFProcess process,
int next_ID,
PO lastPO)
Parent Contructor |
|
MWFActivity(Properties ctx,
int AD_WF_Activity_ID,
String trxName)
Standard Constructor |
|
MWFActivity(Properties ctx,
ResultSet rs,
String trxName)
Load Constructor |
|
| Method Summary | |
|---|---|
void |
addTextMsg(Object obj)
Add to Text Msg |
boolean |
forwardTo(int AD_User_ID,
String textMsg)
Forward To |
static MWFActivity[] |
get(Properties ctx,
int AD_Table_ID,
int Record_ID,
boolean activeOnly)
Get Activities for table/record |
static String |
getActiveInfo(Properties ctx,
int AD_Table_ID,
int Record_ID)
Get Active Info |
int |
getApprovalUser(int AD_User_ID,
int C_Currency_ID,
BigDecimal amount,
int AD_Org_ID,
boolean ownDocument)
Get Approval User. |
Object |
getAttributeValue()
Get Attribute Value (based on Node) of PO |
MWFEventAudit |
getEventAudit()
Get/Create Event Audit |
String |
getHistoryHTML()
Get Process Activity (Event) History |
MWFNode |
getNode()
Get WF Node |
String |
getNodeDescription()
Get Node Description |
String |
getNodeHelp()
Get Node Help |
String |
getNodeName()
Get WF Node Name |
byte[] |
getPdfAttachment()
Get PDF Attachment of underlying PO (!) |
int |
getPO_AD_Client_ID()
Get PO AD_Client_ID |
PO |
getPO()
Get Persistent Object |
PO |
getPO(Trx trx)
Get Persistent Object in Transaction |
MWFResponsible |
getResponsible()
Get Responsible |
StateEngine |
getState()
Get State |
String |
getWFStateText()
Get WF State text |
boolean |
isClosed()
Is Activity closed |
boolean |
isInvoker()
Is Invoker (no user & no role) |
boolean |
isPdfAttachment()
Does the underlying PO (!) |
boolean |
isSOTrx()
Is SO Trx |
boolean |
isUserApproval()
Is this an user Approval step? |
boolean |
isUserChoice()
Is this a user choice step? |
boolean |
isUserManual()
Is this a Manual user step? |
void |
run()
Execute Work. |
void |
setAD_WF_Node_ID(int AD_WF_Node_ID)
Set AD_WF_Node_ID. |
void |
setTextMsg(String TextMsg)
Set Text Msg (add to existing) |
boolean |
setUserChoice(int AD_User_ID,
String value,
int displayType,
String textMsg)
Set User Choice |
void |
setUserConfirmation(int AD_User_ID,
String textMsg)
Set User Confirmation |
void |
setWFState(String WFState)
Set Activity State |
String |
toString()
String Representation |
String |
toStringX()
User String Representation. |
| 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 MWFActivity(Properties ctx,
int AD_WF_Activity_ID,
String trxName)
ctx - contextAD_WF_Activity_ID - idtrxName - transaction
public MWFActivity(Properties ctx,
ResultSet rs,
String trxName)
ctx - contextrs - result settrxName - transaction
public MWFActivity(MWFProcess process,
int AD_WF_Node_ID)
process - processAD_WF_Node_ID - start node
public MWFActivity(MWFProcess process,
int next_ID,
PO lastPO)
process - processAD_WF_Node_ID - start nodelastPO - PO from the previously executed node| Method Detail |
|---|
public static MWFActivity[] get(Properties ctx,
int AD_Table_ID,
int Record_ID,
boolean activeOnly)
ctx - contextAD_Table_ID - tableRecord_ID - recordactiveOnly - if true only not processed records are returned
public static String getActiveInfo(Properties ctx,
int AD_Table_ID,
int Record_ID)
ctx - contextAD_Table_ID - tableRecord_ID - record
public StateEngine getState()
public void setWFState(String WFState)
setWFState in interface I_AD_WF_ActivitysetWFState in class X_AD_WF_ActivityWFState - public boolean isClosed()
public MWFEventAudit getEventAudit()
public PO getPO(Trx trx)
trx - transaction
public PO getPO()
public int getPO_AD_Client_ID()
public Object getAttributeValue()
public boolean isSOTrx()
public void setAD_WF_Node_ID(int AD_WF_Node_ID)
setAD_WF_Node_ID in interface I_AD_WF_ActivitysetAD_WF_Node_ID in class X_AD_WF_ActivityAD_WF_Node_ID - now nodepublic MWFNode getNode()
public String getNodeName()
public String getNodeDescription()
public String getNodeHelp()
public boolean isUserApproval()
public boolean isUserManual()
public boolean isUserChoice()
public void setTextMsg(String TextMsg)
setTextMsg in interface I_AD_WF_ActivitysetTextMsg in class X_AD_WF_ActivityTextMsg - public void addTextMsg(Object obj)
obj - some objectpublic String getWFStateText()
public MWFResponsible getResponsible()
public boolean isInvoker()
public int getApprovalUser(int AD_User_ID,
int C_Currency_ID,
BigDecimal amount,
int AD_Org_ID,
boolean ownDocument)
AD_User_ID - starting UserC_Currency_ID - currencyamount - amountAD_Org_ID - document organizationownDocument - the document is owned by AD_User_ID
public void run()
run in interface Runnable
public boolean setUserChoice(int AD_User_ID,
String value,
int displayType,
String textMsg)
throws Exception
AD_User_ID - uservalue - new ValuedisplayType - display typetextMsg - optional Message
Exception - if error
public boolean forwardTo(int AD_User_ID,
String textMsg)
AD_User_ID - usertextMsg - text message
public void setUserConfirmation(int AD_User_ID,
String textMsg)
AD_User_ID - usertextMsg - optional messagepublic String getHistoryHTML()
public boolean isPdfAttachment()
isPdfAttachment in class POpublic byte[] getPdfAttachment()
getPdfAttachment in class POpublic String toString()
toString in class X_AD_WF_Activitypublic String toStringX()
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||