Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend DocumentService with the CDI Observer pattern #294

Closed
rsoika opened this issue Aug 21, 2017 · 1 comment
Closed

Extend DocumentService with the CDI Observer pattern #294

rsoika opened this issue Aug 21, 2017 · 1 comment

Comments

@rsoika
Copy link
Member

rsoika commented Aug 21, 2017

In order to make it possible for a Plugin to have more control over the WorkflowService processing life-cycle, we can extend the existing Plugin concept with the Observer pattern.
In this extended API a plugin can register itself as a Listener to the method workflowService.processWorkitem(workitem) and can provide callback methods for the following processing phases:

  • afterRegistration - called immediately after the plugin registration phase was completed
  • beforeProcess - called before the method workflowkernel.process(workitem) is called and the workitem is completely prepared for processing.
  • afterProcess - called immediately after the method workflowkernel.process(workitem) was called and before the method _documentService.save(workitem) is called.
@rsoika rsoika added this to the 4.2.0 milestone Aug 21, 2017
rsoika added a commit that referenced this issue Aug 22, 2017
@rsoika rsoika modified the milestones: 4.1.6, 4.2.0 Sep 7, 2017
@rsoika rsoika added the testing label Sep 7, 2017
@rsoika rsoika modified the milestones: 4.2.0, 4.1.6 Sep 10, 2017
rsoika added a commit that referenced this issue Oct 4, 2017
rsoika added a commit that referenced this issue Oct 4, 2017
@rsoika rsoika changed the title Extend Plugin API with an Observer pattern Extend DocumentService with the CDI Observer pattern Oct 16, 2017
@rsoika
Copy link
Member Author

rsoika commented Oct 16, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant