Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
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