AnsweredAssumed Answered

Rules for accessing / modifying data-context properties in 'Data-Process Step' ?

Question asked by KaniskaMandal3431 on Nov 4, 2011
Latest reply on Nov 10, 2011 by Adam Arrowsmith
1)  Properties props = dataContext.getProperties();
String statusValue = props.getProperty("Status");
-- Can I access an user-defined-property inside this 'Data processing Step' , that was actually defined outside the Sep ?

2. Say if  I set a new property
Properties props = dataContext.getProperties();
props.setProperty("Rating","High");
.... Can I create a new property as shown above inside the Step-custom-script and then access outside the Step as user-defined-property ?

3.  Properties props = dataContext.getProperties();
String statusValue = props.getProperty("Status");
props.setProperty("Status","Invalid");
--  Just like Step 1, assuming this property was defined outside this step, can we now change its value inside step's custom script ?

Outcomes