Configuration process of eventaction and subscribe

Source: Internet
Author: User

Contentengine provides a framework that enables system event or custom event to execute user-specified action when the object or class in Content Engine is triggered ). We call it subtasks. That is to say, subtasks bind the event action, one or more events with the target Content Engine object or class that listens to the event. Generally, eventaction is implemented by the developer code, while subscribe is added by the Administrator in Enterprise Manager. Shows the configuration process of eventaction and subscriber in enterprisemanager.

Right-click eventisemanager to create eventaction, enter any name, and click Next.

Enter the complete path of the event action class. Note thatYou need to check configure code module to upload the self-developed event action class in subsequent steps.

Upload the jar package and event action class on which eventaction class depends. Upload the jar package before uploading the class file.

Continue to complete event action creation.

Then, we can create a subcategory at the class definition, single instance, and version series levels, so that when a certain operation occurs on an object, the corresponding event is triggered to execute the above eventaction. To create a subscriber, follow these steps:

Right-click a class (take folder as an example) and click "add subscribe ".

Enter any name

Select the event to listen to for this folder

Select the event action triggered by this event (that is, the event action customized above)

This completes the configuration of event listening and corresponding operations for a specific type. In Content Engine, submodules and Other Related Technologies implement functions similar to database triggers, which can control complex processes, maintain data integrity, audit, and other functions.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.