Use custom plugin variable in data mapper
For a variable that is created in a custom plugin, can it be used as a
variable within a datamap? If so, is there documentation for this?
What I am trying to do is very simple. I have a file:
1111|N,DataMapping:17007
1234|Y,DataMapping:17200012
3567|Y,DataMapping:170092
The plugin creates variables for each. I then set a Put-Context-Var
The first and second variables we are using within the process flow and
they are working well.
WHEN CONDITION{Parallelflag = N } VALUE=[0 ] OTHERWISE VALUE=[1 ]
No matter what it is set to, it will default to 1.
-
You can set a context variable from a custom plugin using context.put
context.put("Environment",key);
Where Envrionment is the variable name and key is the variable value
Then you can use the get context function within the data mapper to access this context variable.
0
Post is closed for comments.
Comments
1 comment