The most easy way is to use context variables. Please assign the values to these variables and assign these variables as parameters in your tDBInput. For example, please refer below link.
Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂