ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 9 - AD0-E906 discussion

Report
Export

A developer implements a custom workflow process using the following code:

The code bundle has been deployed to AEM and displays as active in the Web Console. The developer has created a new workflow model, added a process step, and wants to configure that step to use the custom workflow process. However, the custom workflow process does not appear in the dropdown menu.

What should be done to resolve this issue?

A.
Add the process. label property to the @Component annotation in the CustomizationflowProcess class
Answers
A.
Add the process. label property to the @Component annotation in the CustomizationflowProcess class
B.
Add the process. title property to the @Component annotation in the CustomizationflowProcess class
Answers
B.
Add the process. title property to the @Component annotation in the CustomizationflowProcess class
C.
Add the process. name property to the @Component annotation in the CustomizationflowProcess class
Answers
C.
Add the process. name property to the @Component annotation in the CustomizationflowProcess class
Suggested answer: C

Explanation:

In AEM, for a custom workflow process to be available for selection in the dropdown menu of a process step, the process.name property must be set in the @Component annotation. This property defines the unique name under which the custom workflow process will be registered and visible in the workflow model editor.

Here is an example of how this should be added to the existing code:

@Component(service = WorkflowProcess.class,

property = {'process.label=Custom Workflow Process', 'process.name=customWorkflowProcess'})

process.label: This is the label that appears in the workflow model editor dropdown.

process.name: This is the internal identifier used by AEM to register the workflow process.

Options A and B would define other properties but will not resolve the issue of the custom workflow not appearing in the dropdown. The key property needed here is process.name.

For more details, refer to the AEM documentation on creating custom workflows and annotating components.

asked 02/10/2024
Mitesh Solanki
47 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first