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

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

When FileTransfer event from FileRepository thing has triggered?

and1
13-Aquamarine

When FileTransfer event from FileRepository thing has triggered?

Have a problem with FileTransfer event. I wrote a subscription with code like this:

if(eventData.isComplete === true){
	me.IsComplete = "true";
}

And after I execute some of services, but don't have any result.

I'm confused about that, because i have no idea in which cases event has triggered. 

 

ACCEPTED SOLUTION

Accepted Solutions
PaiChung
22-Sapphire I
(To:and1)

You are subscribed to the FileTransfer event right?

You aren't even getting a FileTransfer start?

View solution in original post

11 REPLIES 11
PaiChung
22-Sapphire I
(To:and1)

I would add some script log logger statements to see what is happening. especially I believe there is a status field you can log out?

and1
13-Aquamarine
(To:PaiChung)

Are you mean a thing property?

PaiChung
22-Sapphire I
(To:and1)

Status should be in the event data or else associated with the transfer job.

and1
13-Aquamarine
(To:PaiChung)

Oh, so just try to log result of status field for see what actually happened?

PaiChung
22-Sapphire I
(To:and1)

Right.

and1
13-Aquamarine
(To:PaiChung)

actually nothing happened in script logs after adding logger.warn to my subscription

PaiChung
22-Sapphire I
(To:and1)

You are subscribed to the FileTransfer event right?

You aren't even getting a FileTransfer start?

and1
13-Aquamarine
(To:PaiChung)

Oh, I didn't understand right when the event is triggered

Thank you!

and1
13-Aquamarine
(To:PaiChung)

So, this event triggered when we transfer our file from device(remote thing) to repository?

PaiChung
22-Sapphire I
(To:and1)

Correct, any copy event should trigger that event, Start, Fail, Finish

and1
13-Aquamarine
(To:PaiChung)

Oh, okay, thank you.

Announcements


Top Tags