How to copy a node of an object to a job slot?.
book
Article ID: KB0085383
calendar_today
Updated On:
TIBCO IntegrationManager
|
-
|
Not Applicable
|
-
|
Description
Description:
How to copy a node of an object to a job slot in an IM script task.
Issue/Introduction
How to copy a node of an object to a job slot?.
Resolution
You would need to clone before copying. For example,
job.src = new Object();
job.src.foo = 1;
job.src.bar = 2;
job.src.xyzzy = "abc";
var srccln = job.src.clone();
job.put("destination", srccln);
If we do not clone the node "src" and we do
job.put("destination", job.get("src"));
the result will be the file job.src being renamed to job.destination.
Additional Information
IM Documentation
Feedback
thumb_up
Yes
thumb_down
No