Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
We are trying to overwrite context variable value (retrieved from config text file) with return value of tSystem component.Following is design.
tSystem -> tJavaRow -> tJava1
We are able to print return value of tSystem In tjavarow and able to overwrite context variable value with following code.
System.out.println("value 1 :----"+((String)globalMap.get("tSystem_1_OUTPUT")));
context.pct = (String)globalMap.get("tSystem_1_OUTPUT");
System.out.println("context value print1... : "+ context.pct);
So above two values are printing correctly .And it seems context variable value also overwritten.However when we print again same values in tJava component.We are getting NULL value for below first statement and second statement return old value (mentioned in text file)
System.out.println("value 2 :----"+((String)globalMap.get("tSystem_1_OUTPUT")));
System.out.println("context value print1... : "+ context.pct);
Why context variable value is showing old value after changing in tjavarow component?
All components are connected as row(main).As mentioned there are only three components
tsystem - > tjavarow -> tjava.
We cannot provide screenshot.please assist asap.
All components are connected as row(main).As mentioned there are only three components
tsystem - > tjavarow -> tjava.
We cannot provide screenshot.please assist asap.
You can close this ... after changing component link from "row(main)" to "on component Ok" .it worked.
Thanks
Regards,
Vivek
Hi,
I would recommend to use On SubJob Ok compared to On Component Ok as it will make sure that the flow is always linear without any surprises.
Warm Regards,
Nikhil Thampi