cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

How to use in my code. "FileTransferSubsystem"

jaiminLee
6-Contributor

How to use in my code. "FileTransferSubsystem"

 

I wish sending local file to thingworx server pc.

 

Is this right?

 

invokeService has timeout so I confused copy function timeout.

 

com.thingworx.types.collections.ValueCollection vc = new com.thingworx.types.collections.ValueCollection();

vc.SetStringValue("sourceRepo", "");//i don't know this

vc.SetStringValue("sourcePath", @"c:\\test");

vc.SetStringValue("sourceFile", "test.txt");

//elide

//elide

invokeService(ThingworxEntityTypes.Resources, " FileTransferSubsystem", "Copy", vc, 10000);

 

  • Copy

    public InfoTable Copy(java.lang.String sourceRepo,
                          java.lang.String sourcePath,
                          java.lang.String sourceFile,
                          java.lang.String targetRepo,
                          java.lang.String targetPath,
                          java.lang.String targetFile,
                          java.lang.Integer timeout,
                          java.lang.Boolean async)
                   throws java.lang.Exception
1 REPLY 1
PaiChung
22-Sapphire I
(To:jaiminLee)

When you do the configuration for the agent, you should be configuring repos (file storage locations) on the drive that will have an alias, that would be the sourceRepo

 

Top Tags