Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Custom workflow step not getting displayed

Avatar

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

Avatar

Correct answer by
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

2 Replies

Avatar

Correct answer by
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

Avatar

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...