Saturday, November 14, 2015

Which event fire first Plugin or Workflow

Which event fire first Plugin or Workflow

If you have any doubt in the post please post comments. I will try to solve your problem.

Let us see which event fir first plugin or workflow

We have created a new workflow and configure the workflow  as trigger at the time of new_name of testentity get change and update the same entity.

We also develop the plugin for the same testentity and configure the plugin as trigger at the time of new_name(with the help of filter attribute feature in plugin we can set the plugin to fire only particular attribute/column get fired) of  testentity get change.

Plugin configure as "pre-validation" and  Work-flow configure as Synchronous:

  • Plugin
  • Workflow

Plugin configure as "per-operation" and  Work-flow configure as Synchronous:

  • Plugin
  • Workflow
Post operation:
In plugin, we have to remove the attribute of new_name and update the testentity, otherwise 
infinite loop exception occur because we have  trigger the plugin at the time of new_name changed. In plugin if the new_name   updated in the database  even though new_name not change in the code. Thats while we remove attribute in the entity in plugin code.


Plugin configure as "post-operation with Synchronous"  and  Work-flow configure as Synchronous(new_name remove):

  • Workflow
  • Plugin

Plugin configure as "post-operation with Asynchronous"  and  Work-flow configure as Synchronous(new_name remove):

  • Workflow
  • Plugin

Plugin configure as "post-operation with Asynchronous"  and  Work-flow configure as  Asynchronous(new_name remove):

  • Plugin
  • Workflow

Plugin configure as "post-operation with synchronous"  and  Work-flow configure as  Asynchronous(new_name remove):

  • Plugin
  • Workflow is not triggered



No comments:

Post a Comment

Note: Only a member of this blog may post a comment.