Search context variable references

One Star

Search context variable references

Hi everybody,
we maintain a pretty big Talend project and we are trying at the moment to clean it up (remove old references and all).
We were searching for some files, defined in context variables containing file names, to see if we can remove those old files. But, a part of searching manually in all jobs, we did not find a way to search for context variables references in our whole project.
Is it possible ?
Thanks very much for any help.
Seventeen Stars

Re: Search context variable references

hi,
perhaps , have a look at items files (files generated by talend under your project workspace => process)
look for context/contextParameter ; you'll find all param&values related to each jobs
hope it help
regards
laurent
Moderator

Re: Search context variable references

Hi,
Job context is saved in related .item file. Repository context is located in project/context directory.
For running context, there will be Default.properties(Defaule is the name of Context group) files generated under "Context" directory where java code will be generated.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: Search context variable references

Ok thanks kzone and xdshi for your reply, that provides some help. Finally in the context tab of the job, we can find these information too.
However, it looks like i have some jobs/item files containing some context variables that are not used inside. I think this may come from the fact that these jobs have been duplicated from other or being applied some full context blocks. 
Is there a way to automatically associate to a job only the variables related to it ? Therefore allowing to search references efficiently ? Is there a functionnality for that in the business edition ?
Thanks.
Seventeen Stars

Re: Search context variable references

there no way, as far as I known to retrieve such information.
you can declare as many context variable as you want without using them.
Varaible contexte can be declare localy to the job (built-in) mode or in context group (repository). 
you can re-use variable from context group in any job.
So you can create several context group and only use the right context in each job.
https://help.talend.com/search/all?query=How+to+centralize+contexts+variables&content-lang=en
regards
laurent