Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Accessing Variables in OR-Split ECMA script

Avatar

Former Community Member

Hi,  

I want to access a variable that was added to the workflow data  by a process step (as shown below).

workItem.getWorkflow().getMetaDataMap().put("next_step", "3");

How can this data "next_step" be accessed in a later occurring OR-Split Ecma script to make some decision about the routing?

Thanks,

1 Accepted Solution

Avatar

Correct answer by
Employee
1 Reply

Avatar

Correct answer by
Employee

Hi a singh.

I think http://dev.day.com/docs/en/cq/current/workflows/wf-extending.html#par_title_0 has the sample you need.

Cheers -- David