Skip to main content
1-Visitor
August 23, 2013
Question

Move objects from one context's folder to another context's folder while creation

Hi All,

I've a requirement which asks to move objects of a certain type from one product to another product while creation. For example, if I created a WTPart in Product A, it should get stored automatically in a given location within Product B.

I'm not sure how to enable such move action within inter context movements. How can we achieve such scenario?

Thanks in advance.

Wasim

4 replies

12-Amethyst
August 23, 2013

I think this can be acheived by adding a custom workflow to the WTPart object and from there you can check where that is getting created,according with that you can assign a Folder location for that part

Translate
1-Visitor
August 23, 2013

Hi Vigneshwaran,

I appreciate your reply. Could you please provide a logic or example to achieve this? I think there should be a listener required to listen to creation of WTParts?

Thanks,

Wasim

Translate
12-Amethyst
August 23, 2013

I don't think you need any listener or service to capture the creation of WTParts.Since you are adding that inside the custom workflow for wtpart,add a expression robot and specify your folder path there.

This API will work to assign the location.

FolderHelper.assignFolderByReference(part, oRef);

Here oRef is ObjectReference

Translate