Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

Workflow Event Handler

Posted on by 2,013

Hi all,

Actually what is the difference between class xxxEventHandler created during creation Workflow Type and xxxEventHandler created during creation Workflow Approval ?

xxxEventHandler created during creation of Workflow Type usually has method:

-started

-completed

-canceled

xxxEventHandler created during creation of Workflow Approval usually has method:

-canceled

-changeRequest

-completed

-created

-denied

-returned

-started

My confusion are, Workflow Type event : Started / Completed / Canceled it's look the same as Workflow Approval event : Started / Completed / Denied, is it not ?

So if I already put some routine in let's say Workflow Type event : Started / Completed / Canceled, I don't need to put in Workflow Approval event, right ?

Kindly advice,

Thanks,

Toni.

Thanks in advance,

Toni

*This post is locked for comments

  • Verified answer
    Asim Saeed Profile Picture
    Asim Saeed 575 on at
    RE: Workflow Event Handler

    Yes its correct, You need to understand this, at times Workflow type contains two child elements

    1)  Task element 2) Approval element  because at times document needs to be send for review before it is approved. The simple example you can see is HcmPositionAction workflow objects.

  • Verified answer
    Mea_ Profile Picture
    Mea_ 60,278 on at
    RE: Workflow Event Handler

    Yep, that's correct.

  • Anton Tjiptadi Profile Picture
    Anton Tjiptadi 2,013 on at
    RE: Workflow Event Handler

    Hi Ievgen,

    Thanks for your kind information.

    So basically, if I understand correctly from it, especially from section whereby they talked about Element Level Event Handler and it is said we can use it for transition of the workflow document, so I only need to maintain in Workflow Approval event : Started / Completed / Denied only.

    Workflow Approval event : Started / Completed / Denied is Element Level Event Handler whereas

    Workflow Type event : Started / Completed / Canceled is Workflow Level Event Handler.

    Can I say like that?

    Thanks again.

    Toni

  • Suggested answer
    Mea_ Profile Picture
    Mea_ 60,278 on at
    RE: Workflow Event Handler

    Hi Toni,

    You probably want to read this msdn article: https://msdn.microsoft.com/en-us/library/cc588240.aspx it has a description of both classes and some examples as well.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,134 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,928 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans