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
BedrockMission!

Learn More

View all

Sign in to view all badges

Process step is not coming in dropdown list

Avatar

Avatar
Contributor 2
Level 4
AdobeID24
Level 4

Likes

54 likes

Total Posts

153 posts

Correct Reply

1 solution
Top badges earned
Contributor 2
Validate 10
Validate 1
Ignite 5
Ignite 3
View profile

Avatar
Contributor 2
Level 4
AdobeID24
Level 4

Likes

54 likes

Total Posts

153 posts

Correct Reply

1 solution
Top badges earned
Contributor 2
Validate 10
Validate 1
Ignite 5
Ignite 3
View profile
AdobeID24
Level 4

16-09-2019

@Component(

   label = "CQ Workflow Process amit",
   description = "Sample Workflow Process implementation amit",
   metatype = true,
   immediate = true
)

@Properties({

   @Property(

   name = "service.description",
   value = "CQ Workflow Process implementation.amit",
   propertyPrivate = true
   ),
   @Property(

   name = "service.pid",
   value = "amitsample.core.filters.WorkflowSamplefilter",
   description = "CQ Workflow Process description"
   ),
   @Property(

   name = "process.label",
   value = "my first workflow process step ",
   description = "CQ Workflow Process description"
   )

})

1833692_pastedImage_0.png

1833693_pastedImage_1.png

1833694_pastedImage_2.png

1833695_pastedImage_3.png

I am not getting  my customised process in the list . Please suggest what i m doing wromh here ...aem version 6.0 i m using ....and using all scr annotations

and

<dependency>
  <groupId>com.day.cq.workflow</groupId>
  <artifactId>cq-workflow-api</artifactId>
  <version>5.4.2</version>
  <scope>provided</scope>
</dependency>

full code if want to check:

package amitsample.core.filters;

import com.day.cq.workflow.WorkflowException;
import com.day.cq.workflow.WorkflowSession;
import com.day.cq.workflow.exec.WorkItem;
import com.day.cq.workflow.exec.WorkflowProcess;
import com.day.cq.workflow.metadata.MetaDataMap;
import org.apache.felix.scr.annotations.Component;
import org.apache.felix.scr.annotations.Properties;
import org.apache.felix.scr.annotations.Property;

@Component(

   label = "CQ Workflow Process amit",
   description = "Sample Workflow Process implementation amit",
   metatype = true,
   immediate = true
)

@Properties({

   @Property(

   name = "service.description",
   value = "CQ Workflow Process implementation.amit",
   propertyPrivate = true
   ),
   @Property(

   name = "service.pid",
   value = "amitsample.core.filters.WorkflowSamplefilter",
   description = "CQ Workflow Process description"
   ),
   @Property(

   name = "process.label",
   value = "my first workflow process step ",
   description = "CQ Workflow Process description"
   )

})

public class WorkflowSamplefilter implements WorkflowProcess {

   @Override
   public void execute(WorkItem workItem, WorkflowSession workflowSession, MetaDataMap metaDataMap) throws WorkflowException {

  }

}

Replies

Avatar

Avatar
Validate 1
MVP
ArpitVarshney
MVP

Likes

136 likes

Total Posts

185 posts

Correct Reply

36 solutions
Top badges earned
Validate 1
Establish
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Validate 1
MVP
ArpitVarshney
MVP

Likes

136 likes

Total Posts

185 posts

Correct Reply

36 solutions
Top badges earned
Validate 1
Establish
Give Back 5
Give Back 3
Give Back 25
View profile
ArpitVarshney
MVP

16-09-2019

Hi,

@service annotation seems to be missing in your code.could you please add and check again?

Please follow this: Adobe Experience Manager Help | Creating custom AEM workflow steps that send email messages

Regards,

Arpit

Avatar

Avatar
Give Back 50
Employee
berliant
Employee

Likes

207 likes

Total Posts

315 posts

Correct Reply

98 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile

Avatar
Give Back 50
Employee
berliant
Employee

Likes

207 likes

Total Posts

315 posts

Correct Reply

98 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile
berliant
Employee

16-09-2019

Try to use something like:

@Component(service=WorkflowProcess.class, property = {"process.label=My Workflow"})

Avatar

Avatar
Contributor 2
Level 4
AdobeID24
Level 4

Likes

54 likes

Total Posts

153 posts

Correct Reply

1 solution
Top badges earned
Contributor 2
Validate 10
Validate 1
Ignite 5
Ignite 3
View profile

Avatar
Contributor 2
Level 4
AdobeID24
Level 4

Likes

54 likes

Total Posts

153 posts

Correct Reply

1 solution
Top badges earned
Contributor 2
Validate 10
Validate 1
Ignite 5
Ignite 3
View profile
AdobeID24
Level 4

16-09-2019

yeah i missed that but after adding that aslo it didnt resolve the issue

@Service(WorkflowSamplefilter.class)

any other work around?

Avatar

Avatar
Contributor 2
Level 4
AdobeID24
Level 4

Likes

54 likes

Total Posts

153 posts

Correct Reply

1 solution
Top badges earned
Contributor 2
Validate 10
Validate 1
Ignite 5
Ignite 3
View profile

Avatar
Contributor 2
Level 4
AdobeID24
Level 4

Likes

54 likes

Total Posts

153 posts

Correct Reply

1 solution
Top badges earned
Contributor 2
Validate 10
Validate 1
Ignite 5
Ignite 3
View profile
AdobeID24
Level 4

16-09-2019

still I am using SCR annotations .....and working in AEM 6.0

Avatar

Avatar
Contributor 2
Level 4
AdobeID24
Level 4

Likes

54 likes

Total Posts

153 posts

Correct Reply

1 solution
Top badges earned
Contributor 2
Validate 10
Validate 1
Ignite 5
Ignite 3
View profile

Avatar
Contributor 2
Level 4
AdobeID24
Level 4

Likes

54 likes

Total Posts

153 posts

Correct Reply

1 solution
Top badges earned
Contributor 2
Validate 10
Validate 1
Ignite 5
Ignite 3
View profile
AdobeID24
Level 4

16-09-2019

I have gone through all the links available for workflows and did Rnd already ..didnt get wats the actual issue ...that is why posted here ...Thanks

Avatar

Avatar
Validate 1
MVP
ArpitVarshney
MVP

Likes

136 likes

Total Posts

185 posts

Correct Reply

36 solutions
Top badges earned
Validate 1
Establish
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Validate 1
MVP
ArpitVarshney
MVP

Likes

136 likes

Total Posts

185 posts

Correct Reply

36 solutions
Top badges earned
Validate 1
Establish
Give Back 5
Give Back 3
Give Back 25
View profile
ArpitVarshney
MVP

16-09-2019

Can you replace your annotation with below and try again:

@Component

@Service

@Properties({

    @Property(name = Constants.SERVICE_DESCRIPTION, value = "Sample Workflow Process implementation amit")

    @Property(name = "process.label", value = "my first workflow process step") })

public class WorkflowSamplefilter implements WorkflowProcess {

   @Override
   public void execute(WorkItem workItem, WorkflowSession workflowSession, MetaDataMap metaDataMap) throws WorkflowException {

  }

}

Avatar

Avatar
Contributor 2
Level 4
AdobeID24
Level 4

Likes

54 likes

Total Posts

153 posts

Correct Reply

1 solution
Top badges earned
Contributor 2
Validate 10
Validate 1
Ignite 5
Ignite 3
View profile

Avatar
Contributor 2
Level 4
AdobeID24
Level 4

Likes

54 likes

Total Posts

153 posts

Correct Reply

1 solution
Top badges earned
Contributor 2
Validate 10
Validate 1
Ignite 5
Ignite 3
View profile
AdobeID24
Level 4

16-09-2019

Thanks Arpit.   its worked ..........but still wondering wat was wrong ?

Avatar

Avatar
Validate 1
MVP
ArpitVarshney
MVP

Likes

136 likes

Total Posts

185 posts

Correct Reply

36 solutions
Top badges earned
Validate 1
Establish
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Validate 1
MVP
ArpitVarshney
MVP

Likes

136 likes

Total Posts

185 posts

Correct Reply

36 solutions
Top badges earned
Validate 1
Establish
Give Back 5
Give Back 3
Give Back 25
View profile
ArpitVarshney
MVP

16-09-2019

You were using @Service(WorkflowSamplefilter.class) which was wrong.

Instead, you should either use @Service(WorkflowProcess.class) or just @Service annotation