Cyber Monday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Adobe Exam AD0-E123 Topic 1 Question 4 Discussion

Actual exam question for Adobe's AD0-E123 exam
Question #: 4
Topic #: 1
[All AD0-E123 Questions]

A developer has created a custom workflow model which includes a JAVA-based custom process step. During the creation of this custom process step, some data has been saved in metadata programmatically for subsequent workflow steps.

Which code snippet can be used to save this metadata in JAVA code7

Show Suggested Answer Hide Answer
Suggested Answer: C

When working with custom workflow steps in AEM, metadata associated with the workflow session can be programmatically accessed and manipulated. The MetaDataMap object serves as a container for this data. The correct way to access and modify this metadata in Java would be:

Option C, MetaDataMap wfd = WorkItem.getWorkflow().getWorkflowData().getMetaDataMap(); wfd.put('mykey', 'My Step Value'); This snippet correctly retrieves the MetaDataMap from the WorkflowData of the current Workflow session. It then uses the put method to store a new key-value pair, where 'mykey' is the key and 'My Step Value' is the value to be saved.

Options A and B do not properly chain the method calls to access the MetaDataMap associated with the current workflow session and are therefore incorrect.


Contribute your Thoughts:

Raul
6 months ago
A also seems plausible because it directly accesses the metadata map of the work item.
upvoted 0 times
...
Reena
6 months ago
I think C is correct because it accesses the metadata map from the workflow data.
upvoted 0 times
...
Beckie
6 months ago
The rationale behind my choice is that it accesses the workflow metadata directly.
upvoted 0 times
...
Raul
6 months ago
I'm not sure, but I think it might be A.
upvoted 0 times
...
Reena
6 months ago
I disagree, I believe the correct answer is C.
upvoted 0 times
...
Beckie
6 months ago
I think the correct answer is B.
upvoted 0 times
...
Tomoko
6 months ago
I agree with Jeannine, I think option C is the correct one. Accessing the metadata map through WorkflowData makes more sense in this case.
upvoted 0 times
...
Muriel
6 months ago
I'm not sure, but I think I would go with option A. It seems straightforward to access the metadata map through WorkItem.
upvoted 0 times
...
Jeannine
7 months ago
I disagree, I believe the answer is C. It makes more sense to access the metadata through WorkItem's workflow data.
upvoted 0 times
...
Chan
7 months ago
I think the correct answer is B. It seems to be the most logical choice.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77