cancel
Showing results for 
Search instead for 
Did you mean: 

My Workflow task is going to the system user.

anwar501pasha
Champ in-the-making
Champ in-the-making
HI All,

I have business requirement where I want to send an email notification to the reviwer as well as to deploy the content into the rewier sandbox.

for this I have configured my email settings in my workflow when iam submitting the task from creator to rewier Iam able to send the email notification to the rewier but when I approve the content in the rewier Iam not able to deploy the content into the rewier sandbox.

Iam getting the following Exaception Saying Access Denied.

org.alfresco.repo.security.permissions.AccessDeniedException: Access Denied.  You do not have the appropriate permissions to perform this operation.
        at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:53)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.alfresco.repo.audit.AuditComponentImpl.audit(AuditComponentImpl.java:275)
        at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:69)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
        at $Proxy63.getProperties(Unknown Source)
        at org.alfresco.repo.avm.actions.AVMDeployWebsiteAction.executeImpl(AVMDeployWebsiteAction.java:271)
        at org.alfresco.repo.action.executer.ActionExecuterAbstractBase.execute(ActionExecuterAbstractBase.java:127)
        at org.alfresco.repo.action.ActionServiceImpl.directActionExecution(ActionServiceImpl.java:688)
        at org.alfresco.repo.action.ActionServiceImpl.executeActionImpl(ActionServiceImpl.java:625)
        at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper$1$1.execute(AsynchronousActionExecutionQueueImpl.java:369)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:322)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:229)
        at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper$1.doWork(AsynchronousActionExecutionQueueImpl.java:378)
        at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:497)
        at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper.run(AsynchronousActionExecutionQueueImpl.java:381)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)
Caused by: net.sf.acegisecurity.AccessDeniedException: Access is denied.
        at net.sf.acegisecurity.vote.AffirmativeBased.decide(AffirmativeBased.java:86)
        at net.sf.acegisecurity.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:394)
        at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:77)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:49)
        … 21 more

I have tried all the possible ways, but did not have any luck.

Please help to resolve this Issue.

Thanks in Advace.

Anwar
4 REPLIES 4

jayjayecl
Confirmed Champ
Confirmed Champ
Is it some js code or java code that is dedicated to the moving of the content ?

Can you provide us with this code ?
Thanks

anwar501pasha
Champ in-the-making
Champ in-the-making
Hi JayJay,

Iam not using any js or java code form deploying the content Iam using the autodeploy option of Workflow.

Thanks & regards,
Anwar

jayjayecl
Confirmed Champ
Confirmed Champ
I wasn't talking about deploying the workflow definition files or models, but the content during the workflow instance :

"but when I approve the content in the rewier Iam not able to deploy the content into the rewier sandbox"

anwar501pasha
Champ in-the-making
Champ in-the-making
Hi,

In order to deploy the content into the content reviewer sandbox iam not using any java code, Just the autodeploy option of the workflow is doing my job.

The autodeploy option will come when we are supposed to instantiate the workflow.

Thanks & Regards,
Anwar