cancel
Showing results for 
Search instead for 
Did you mean: 

Work flow - moving custom content

harshad
Champ in-the-making
Champ in-the-making
We are trying to customize Alfresco and have developed our content type. This content type is submitted by users in their home space and saved there. We have developed a custom workflow bean which moves this content to another space for being evaluated. This works well if the User has a contributor role on the Evaluated folder. But our needs are such that user should not see anything in that space. If we set such a permission (I tried giving a combination of write and Add children), the workflow bean fails stating permission is denied. It seems that some how Read permission is needed to make the work flow work. How can this be avoided?

Thanks.
2 REPLIES 2

hazmat
Champ in-the-making
Champ in-the-making
nutshell .. at least till alfresco adopts a real workflow solution.

if you want to have container based workflows with transitions to states (containers ) that the transition actor / principal does not have access to you, you'll need to bypass the security system. you can either utilize an unproxied nodeservice or runtime swap users to the system account via the authenticationcomponent bean.  these are the recommened solutions found on the forums. however, the unproxied services are generally of use imho only when you have a reference handy to the destination container, else resolving a handle to the destination can  is problematic ( for path based destinations, fileservice delegates to search which filters results based on access, unless you query directly to an unproxied search service ). ie. the more objects/services you need to touch to determine and move the content to the destination the harder an unproxied approach is. the runtime user swap, whatever its architectural shortcomings, is the past of least resistance.

emmanuel
Champ in-the-making
Champ in-the-making