Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Custom workflow step not getting displayed

kaushik-Datta
Level 2
Level 2

Dear All ,
We have a requirement of creating a Custom workflow step using OSGI R6 annotation but the problem we are facing is that custom step is not getting displayed in workflow step chooser drop down in aem archtype 11 in aem 6.3 sp3 cfp2 . Will somebody faced same issue and have some solution to it.
Below is the following code :

package com.adobe.aem.guides.mam.core;

import com.adobe.granite.workflow.WorkflowException;

import com.adobe.granite.workflow.WorkflowSession;

import com.adobe.granite.workflow.exec.WorkItem;

import com.adobe.granite.workflow.exec.WorkflowProcess;

import com.adobe.granite.workflow.metadata.MetaDataMap;

import org.osgi.service.component.annotations.Component;

import org.osgi.framework.Constants;

import org.slf4j.Logger;

import org.slf4j.LoggerFactory;

@Component(immediate=true, service = ReplicateViaSpecificAgent.class, property = {Constants.SERVICE_DESCRIPTION + "=Write Adaptive Form Attachments to File System",

        Constants.SERVICE_VENDOR + "=Adobe Systems","process.label=ActivateViaSpecificAgent" })

public class ReplicateViaSpecificAgent implements WorkflowProcess{

    private static final Logger log = LoggerFactory.getLogger(ReplicateViaSpecificAgent.class);

    @Override

    public void execute(WorkItem workItem, WorkflowSession session, MetaDataMap processArguments) throws WorkflowException {

        log.debug("Hello World");

     

    }

}

Thanks in Advance

1 Accepted Solution
Anupam_Maiti
Correct answer by
Level 2
Level 2

Hi,

Please find the below Github link for the project which contains the above code and issue :

GitHub - anupammaiti/AEM63AppWorkflowStep: AEM63 App Workflow Step Code For Adobe

Custom workflow step java file name :"ReplicateViaSpecificAgent.java"

Could any one please let me know if I am doing something wrong or there is some issue from product side.

Thanks in advance.

Warm Regards

Anupam Maiti

View solution in original post

0 Replies
Anupam_Maiti
Correct answer by
Level 2
Level 2

Hi,

Please find the below Github link for the project which contains the above code and issue :

GitHub - anupammaiti/AEM63AppWorkflowStep: AEM63 App Workflow Step Code For Adobe

Custom workflow step java file name :"ReplicateViaSpecificAgent.java"

Could any one please let me know if I am doing something wrong or there is some issue from product side.

Thanks in advance.

Warm Regards

Anupam Maiti

View solution in original post

Himanshu_Singhal
Community Advisor
Community Advisor

Please provide service class as WorkflowProcess.class instead of providing the your own class name.

@Component(immediate=true, service = WorkflowProcess.class, property = {Constants.SERVICE_DESCRIPTION + "=Write Adaptive Form Attachments to File System",

        Constants.SERVICE_VENDOR + "=Adobe Systems","process.label=ActivateViaSpecificAgent" })

E.g. Adobe Experience Manager Help | Creating an Adobe Experience Manager 6.4 custom workflow step that u...