Leiste mit Community-Erfolgen erweitern.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.

GELÖST

workflow metadata args in process step

Avatar

Level 2

Hi All,

I had created a workflow with one process step and provided some arguments. While I was trying to retrieve the Metadata args, I was getting only PROCESS key and its value, not PROCESS_ARGS key and value. But I can see the value on crx workflow model. Below the code snippet I use,

String processArgs = args.get("PROCESS_ARGS", String.class); Thanks in advance for your help.

1 Akzeptierte Lösung

Avatar

Korrekte Antwort von
Community Advisor

@rgravisankar you should use Sync option in Touch UI interface - this will apply changes under /var as well. Please be aware that once you are running new instance of the workflow model from /var will be used. So I suggest to update model definition under /var and see if this will help.

 

You can also have a look into documentation https://experienceleague.adobe.com/docs/experience-manager-65/developing/extending-aem/extending-wor...

Lösung in ursprünglichem Beitrag anzeigen

6 Antworten

Avatar

Community Advisor

Hi @rgravisankar 

 

Can you try below code snippet:

String processArgs = processArguments.get("PROCESS_ARGS", "string").toString();

 

Regards,

Arpit Varshney

Avatar

Level 2

Hi @ArpitVarshney,I understand processAruguments is instance of MateDataMap from execute method parameter, if so, there no PROCESS_ARGS key present.

Iterator<String> ite = args.keySet().iterator();
while(ite.hasNext()) {
print(ite.next());
}

above code prints only "PROCESS", not "PROCESS_ARGS". Thanks.

 

Regards,

Ravi R

Avatar

Community Advisor

Hi @rgravisankar could you please check if both workflow models - under /conf and /var contains PROCESS_ARGS property?

Avatar

Level 2

@lukasz-m I can see PROCESS_ARGS property under /conf, but not in /var. Did miss anything when I create workflow model?

Avatar

Korrekte Antwort von
Community Advisor

@rgravisankar you should use Sync option in Touch UI interface - this will apply changes under /var as well. Please be aware that once you are running new instance of the workflow model from /var will be used. So I suggest to update model definition under /var and see if this will help.

 

You can also have a look into documentation https://experienceleague.adobe.com/docs/experience-manager-65/developing/extending-aem/extending-wor...

Avatar

Level 2

Thanks a lot @lukasz-m , I did sync on first time, but not sync in subsequent changes. Its my bad and shame on me :).

 

Thanks once again.