Hi Ashutosh, I would consider using an attribute of the document to determine how you organize it on output. You can set this using the metadata adjuster transformer.
Karl On Thu, Jun 16, 2016 at 9:09 AM, <[email protected]> wrote: > Hi Karl, > > > > Thanks for clarifying this. From your email its quite clear that trying to > do this will be a bad idea. > > > > My requirement is to be able to associate every file crawled with a > corresponding run id. For example, if a job copies 100 files from > sharepoint repository to a shared directory, I should be able to recognize > the 100 files in comparison to another job that copied another 50 files > from the same source and target. > > > > Do you have any recommendations on how we could achieve that? > > > > Regards, > > -Ashutosh > > > > > > > > *From: *Karl Wright <[email protected]> > *Sent: *16 June 2016 13:35 > *To: *[email protected] > *Subject: *Re: Ability to get the job id inside a connector > > > > ** This mail has been sent from an external source ** > Hi Ashutosh, > > A connection instance is not just associated with one job -- these are > pooled and are checked out as needed by whatever code needs a connection > instance. It's not part of the general contract of connection instances > that they be associated with specific jobs. The API structure reflects > this. > > Access to a job's data for the purposes of modifying how a connector > behaves is also a great way to build a connector that will not work > properly. I highly discourage this. > > There is access to job information that is appropriate for a connector to > see, but it comes in via the I*Activity interface instances that are passed > to specific methods implemented by the connector. These do not include > access to the job ID, however. > > Thanks, > Karl > > > On Thu, Jun 16, 2016 at 8:26 AM, <[email protected]> wrote: > >> Hi, >> >> >> >> Is there a way to get the id of the job that a particular connector >> instance is invoked under? Either via the thread context or some other >> mechanism? >> >> >> >> I looked through the code but I was not able find anything to tie the two >> together. >> >> >> >> Request your inputs/advice on this. >> >> >> >> Thanks. >> >> -Ashutosh >> >> >> >> >> >> >> The information contained in this electronic message and any attachments >> to this message are intended for the exclusive use of the addressee(s) and >> may contain proprietary, confidential or privileged information. If you are >> not the intended recipient, you should not disseminate, distribute or copy >> this e-mail. Please notify the sender immediately and destroy all copies of >> this message and any attachments. WARNING: Computer viruses can be >> transmitted via email. The recipient should check this email and any >> attachments for the presence of viruses. The company accepts no liability >> for any damage caused by any virus transmitted by this email. >> www.wipro.com >> > > The information contained in this electronic message and any attachments > to this message are intended for the exclusive use of the addressee(s) and > may contain proprietary, confidential or privileged information. If you are > not the intended recipient, you should not disseminate, distribute or copy > this e-mail. Please notify the sender immediately and destroy all copies of > this message and any attachments. WARNING: Computer viruses can be > transmitted via email. The recipient should check this email and any > attachments for the presence of viruses. The company accepts no liability > for any damage caused by any virus transmitted by this email. > www.wipro.com >
