Class DataContextBinding

All Implemented Interfaces:
HasHandlers

public class DataContextBinding extends DataClass
Identical to a DataContext but in addition to fixed values, ruleContext values can be specified by prefixing the ruleContext path with $ruleScope. as shown below:

For example, in SmartGWT:

    Record customerRecord = new Record();
    customerRecord.setAttribute("customerNumber", "$ruleScope.customerGrid.values.customerNumber");
 
    DataContext dataContext = new DataContext();
    dataContext.addMapping("Customer", customerRecord);
  

When used within a Workflow SetScreenDataTask or AddScreenTask, any applicable TaskInputExpression can be used as a value.

To use a literal value that starts with one of the expressions described above, prefix the leading dollar sign ($) with a backslash (\) (ex. "\$ruleScope.goes.here") to prevent the value from being resolved as an expression.