Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Variables accessible in OR-Split ECMA script

Avatar

Level 1

Hi,  

Which variables are available to the OR-Split  Ecma script ? Some examples under /etc/workflow/scripts and this doc  use variables such as metaData, workItem, args which do not seem to available to Or-Ecma script.

In particular, i want to access a variable,  inserted by  a preceding 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,

0 Replies