Sunday, June 17, 2018

How to get the arguments value of method in Pre/Post EventHandler extensions

Here we have taken the Project Quotation Approval Workflow EventHandler class.

Class Name: PSAProjQuotationApprovalEventHandler
Method Name: Completed

 [PostHandlerFor(classStr(PSAProjQuotationApprovalEventHandler), methodStr(PSAProjQuotationApprovalEventHandler, completed))]
    public static void PSAProjQuotationApprovalEventHandler_Post_completed(XppPrePostArgs args)
    {
        WorkflowContext workflowContext;
        PSAProjQuotationApprovalEventHandler            PSAProjQuotationApprovalEventHandler = args.getThis();
        WorkflowElementEventArgs                        _workflowElementeventArgs = args.getArgNum(1);
        workflowContext                                 = _workflowElementEventArgs.parmWorkflowContext();
       
    }

From workflowContext we can write our business logic as we need...



No comments:

Post a Comment