Wednesday, October 7, 2015

How to extend Replication Page Process for workflow in AEM

Use Case: You want to extend existing replication page process and add your own logic during workflow step. Some of common use case could be,
1) Activate Asset as soon as it is uploaded to DAM

Solution:

Here is sample code you can use for this,

What this code is doing is trying to find DAM asset path from workflow item and then activating DAM asset instead of activating just original node when OOTB activate page workflow is used.



Once you add your code, you can add this as workflow step in your workflow. If you are extending model.xml for workflow then it will look something like this,

        <node
            jcr:primaryType="cq:WorkflowNode"
            description="A process to activate a page or asset"
            title="Activate Original Asset"
            type="PROCESS">
            <metaData
                jcr:primaryType="nt:unstructured"
                PROCESS="com.wemblog.ActivateAssetFromOriginalProcess"
                PROCESS_AUTO_ADVANCE="true"/>
        </node>

Also you have to make sure that you have right dependency in your pom.xml. If you are using AEM6.1 then you need to use

<dependency>
    <groupId>com.adobe.aem</groupId>
    <artifactId>uber-jar</artifactId>
    <version>6.1.0</version>
    <classifier>apis</classifier>
    <scope>provided</scope>
</dependency>

As usual if you have any question or comment please let me know.

16 comments:

  1. According to the latest essay writer review, it is found that students are mostly choosing Best Dissertation Writing Services for their unmatched quality of service. There are lots of positive reviews that add to MyAssignmentHelp.com review.
    This assignment help service is the best in the market according to students’ review. It has been found that most of the students prefer their service because of the quality, price and other beneficial aspects. By analyzing some of the top reviews, let us know why this service has been considered as the best one for the help seekers.
    The only way to get a detailed insight of the site is to go through the reviews that are posted on the best essay writing service,
    Before selecting a homework help websites, students must read the reviews. Reading reviews is necessary as the students get to know which service providers are genuine and which is fake.
    To mislead the visitors, a lot of My assignment help Review are posted in review writing websites.
    For students who are going to write and looking for topics. Which side of the problem are you going to write about and what solution can you offer? You should know the objective of your essay, topic like- Hamlet’s Tragedy Persuasive Essay samples.

    ReplyDelete
  2. Replies
    1. IEEE Project Domain management in software engineering is distinct from traditional project deveopment in that software projects have a unique lifecycle process that requires multiple rounds of testing, updating, and faculty feedback. A IEEE Domain project Final Year Projects for CSE system development life cycle is essentially a phased project model that defines the organizational constraints of a large-scale systems project. The methods used in a IEEE DOmain Project systems development life cycle strategy Project Centers in India provide clearly defined phases of work to plan, design, test, deploy, and maintain information systems.


      This is enough for me. I want to write software that anyone can use, and virtually everyone who has an internet connected device with a screen can use apps written in JavaScript. JavaScript Training in Chennai JavaScript was used for little more than mouse hover animations and little calculations to make static websites feel more interactive. Let’s assume 90% of all websites using JavaScript use it in a trivial way. That still leaves 150 million substantial JavaScript Training in Chennai JavaScript applications.

      Delete
  3. Hey, Your blog is very informative. It is nice to read such high-quality content. Attractive information on your blog, thank you for taking the time and share with us. Myassignmenthelp delivers high-quality content related to student essay writing.

    ReplyDelete
  4. I am a freelancer and have been helping a lot of students in providing assistance to students who frequently gets worried about their assessment tasks and went online to search for assignment help service terms.
    We at My Assignment Services have potentially recognized the need way back and started what we are an enlarged version of then. With many assignment helper companies in the market, no one has quite able to match the standard that we follow. We give utmost priority to students by strictly adhering to the assignment requirements as well as marking rubrics to score high grades. Our programming assignment help writers are well-proficient in not only comprehending your assessment tasks but also to give an expert finish to it.
    Provided a well-written assignment suitable to your needs, your search for professional essay writers will now end with My Assignment Services. You just have to visit our website for more information.

    ReplyDelete
  5. I suggest everyone to choose Assignment Help Australia for getting the best guidance in their academia. The proficient experts assist as per the requirements and learning styles desired by the university.

    ReplyDelete
  6. Thank you for sharing information. Wonderful blog & good post.
    Paperssolution
    topacademictutors
    liveassignmenthelp

    ReplyDelete



  7. Men looking for Escorts in Aerocity usually have a variety of needs that need to be fulfilled. Some want to hire escorts just as a companion, some want them to be their dinner dates or dance floor partners while others may want them to play the role of the sexy girlfriends. Check our other services also..
    Escorts Service in Aerocity
    Russian Escorts in Mahipalpur
    Foreigner Escorts in Mahipalpur
    Escorts Service in Delhi
    Call Girl in Mahipalpur
    Call Girls in Aerocity

    ReplyDelete
  8. It is important for medical science research paper service students to seek Medical Science Assignment Help from a reputable custom medical science writing company so as to be assured of good grades in their medical science essay writing services.

    ReplyDelete
  9. To seek the best Logistics Writing Services Online for those studying logistics management coursework writing services, it is important to hire award winning logistics research paper writing help services.

    ReplyDelete
  10. Those ESL assignment writing services have an advantage of hiring the best English language coursework writing service company that is familiar with ESL assignment help services for their English Language Writing Services.

    ReplyDelete


  11. When it comes to your academic dreams and grades we try to give our best by supporting you in completing your college assignments.
    Our administrative experts work dedicatedly and passionately to provide top quality essay writing help to the students. Meticulous paper structures,
    subject matter relevance, free from grammatical errors are main characteristics that our highly experienced and talented writers endeavor for.
    Still drowning in the worry to complete your college assignments?

    Assignment helpers Online


    ReplyDelete
  12. Most of the students are fascinated with opting Law as a career. A good academic record leads to a good placement also. Unique Submission law assignment writing help services are here to take off the burden of multiple assignment writing topics from your shoulders. Here our law subject expert writers will ensure to get you peerless outcomes with their law assignments help on the comprehensive writing academic field.

    Law assignment writing help


    ReplyDelete
  13. Extending the replication page process for Workflow in AEM requires proper code and numbering. I have found DEM asset path for workflow and now page workflow is active. This task has been fulfilled after following your instructions. Dissertation Writing Services

    ReplyDelete