CustInvoiceTable::setWorkflowState Method
Sets the WorkflowApprovalState and WorkflowApprovalStatus fields of the CustInvoiceTable table, depending on the workflow events that have occurred.
Syntax
client server public static void setWorkflowState(RecId _freeTextInvoiceRecId, CustFreeInvoiceWFApprovalState _freeTextInvoiceWorkflowState)
Run On
Called
Parameters
- _freeTextInvoiceRecId
Type: RecId Extended Data Type
The record ID of the table which is associated with the workflow.
- _freeTextInvoiceWorkflowState
Type: CustFreeInvoiceWFApprovalState Enumeration
The workflow state to be set.
Remarks
The method is called from the workflow event handler classes.