Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
row7.value1 + row7.value2 == 0 ? 0 : row7.value1/(row7.value1 + row7.value2)
tFileInputExcel =row6=> tFlowToIerate => tPostgresqlInput =row7=> tMap => tFileOutpuDelimited
row7.value1 + row7.value2 == 0 ? 0 : row7.value1/(row7.value1 + row7.value2)
Starte Job talend_test am 10:16 27/04/2016.
connecting to socket on port 3398
connected
KPI_ID: 100020|KPI_NAME: example_kpi|ETL_EXPRESSION: row7.value1 + row7.value2 == 0 ? 0 : row7.value1/(row7.value1 + row7.value2)
disconnected
Job talend_test endet am 10:16 27/04/2016.
ScriptEngineManager mgr = new ScriptEngineManager();
ScriptEngine engine = mgr.getEngineByName("JavaScript");
String infix = "row7.value1 + row7.value2 == 0 ? 0 : row7.value1/(row7.value1 + row7.value2)";
context.test = engine.eval(infix);
javax.script.ScriptException: ReferenceError: "row7" is not defined in <eval>
context.test = (row7.value1 + row7.value2 == 0 ? 0 : row7.value1/(row7.value1 + row7.value2));