//Workflow Event hnadler in class of SalesCreditLimitApprovalEvent Handler
Method : Returned
public void returned(WorkflowElementEventArgs _workflowElementEventArgs)
{
SalesTable SalesTable;
ttsbegin;
select forupdate SalesTable
where SalesTable.RecId ==_workflowElementEventArgs.parmWorkflowContext().parmRecId();
SalesTable.CreditLimitApprovalStatus = SalesCreditLimitApprovalStatus::Rejected;
SalesTable.update();
ttscommit;
}
Method : Returned
public void returned(WorkflowElementEventArgs _workflowElementEventArgs)
{
SalesTable SalesTable;
ttsbegin;
select forupdate SalesTable
where SalesTable.RecId ==_workflowElementEventArgs.parmWorkflowContext().parmRecId();
SalesTable.CreditLimitApprovalStatus = SalesCreditLimitApprovalStatus::Rejected;
SalesTable.update();
ttscommit;
}
No comments:
Post a Comment