cancel
Showing results for 
Search instead for 
Did you mean: 

Javascript reference to inbound space

slothrop
Champ in-the-making
Champ in-the-making
I want to use a simple workflow to copy a subspace of the user home into another space.  I would like to execute javascript on the space when it enters the destination space so I can rename it and set permissions.  How do I get a reference to the inbound space in Alfresco version 2.1?

When I have javascript in a workrule that executes on an inbound document I can refer to it as "document" but when it is an inbound space, "space" doesn't work.  "Space" refers to the destination space not the inbound one.
2 REPLIES 2

slothrop
Champ in-the-making
Champ in-the-making
Not possible?

How about a Javascript reference to the outbound space?  If I have a simple workflow that operates on a subspace of User Home that moves it to another space, is there a way for me to change it's name and assign permissions in a Javascript workrule that executes on out bound subspaces from User Home?

I havenot yet been able to get a reference to the outbound space.  "space" in this case refers to User Home.  I don't want to rename userHome.

slothrop
Champ in-the-making
Champ in-the-making
In case there is anyone else to whom the answer wasn't obvious, an incoming space that is being moved or copied into a space can be referred to as "document" in a workrule that is operating on incoming content type "space."