Five Stars

TAC instance Trigger for multiple Context variable

Hello,

 

We have a one job that run for multiple client, we just need to change the client name in context variable and run the job. So how should we trigger or schedule that job from TAC for multiple client and client name is taken from context variable at same time.
For Example,I have to trigger same job for at least 15 different context variable for different customer. So when I have 40 job(minimum) so I have to create 40*15 task, so it is tedious task for me to do this thing. And one thing is that when something is changed in the job we have again upload or deploy this job to whole client.

 

So could you help me out if you have solution to implement this things.

 

Kr,

Parag Dosi

  • Big Data
5 REPLIES
Nine Stars TRF
Nine Stars

Re: TAC instance Trigger for multiple Context variable

Enumerate clients in a single context variable like "client1;client2;..." then design a master (a launcher) job in charge to iterate over each value extracted from the clients list, set your context variable with the current client name and call the desired elementary job. You can now easily add or remove one or more clients from the list with no cost and, most important, just have a single task to manage in the TAC.
I've already use this approach with success.

TRF
Five Stars

Re: TAC instance Trigger for multiple Context variable

Hello,

 

Thanks for suggestion.

 

I also got this approach but in this approach there is one problem, when we have 40 client and only want to schedule 30 client job but out of 30 client we want to run 10 client parallel and after completing the job run for next 10 client. Or 10 Client job run parallel at 3Smiley TongueM then next 10 Client job run at 5:00PM then again next 10 Client job run at 6:00 PM. So what to do in this situation.

 

If we create different different task then if something is changes then we have to upload the job for whole client that is the problem.

 

So any other way we can create task for whole client and schedule the job and something is change in job then it will reflect to the whole job.

 

KR,

Parag

Nine Stars TRF
Nine Stars

Re: TAC instance Trigger for multiple Context variable

Well, did you consider TAC API? It allows to create and run tasks dynamically and a lot of other cool things.
Using a JSON or CSV file you can define the desired configuration (which client served at what time). Then you need a launcher to create the tasks on a daily basis (or twice a day or each time the configuration file is changed).
If I've understood your need, I think it should be a way to explore.

TRF
Five Stars

Re: TAC instance Trigger for multiple Context variable

Hello,

 

I have no idea about TAC API. Could you provide me the link where I can learn about TAC API. Or you can explain here what is TAC API and which API should I need to implement this things.

Thanks in advance.

 

Kr,

Parag

Nine Stars TRF
Nine Stars

Re: TAC instance Trigger for multiple Context variable

Hi,
In short, TAC metaServlet API is a REST webservice allowing you to interact with TAC from jobs as you do from a navigator. Awesome!
Read Ed Ost's blog article and TAC user's guide to discover functionalities offered by TAC metaservlet API.
All you need is a tLibraryLoad to load the org.apache.servicemix.bundles.commons-codec-1.3_5.jar for Base64 conversion.
I hope these pointers will help you to solve your use case, else open new topics depending on the problem you're facing (preferably in Design and Development group).
 
Kind regards,

TRF