Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Error updating a Human Task in BPEL

647882Jun 3 2009 — edited Jun 9 2009
Hi,

I have a requirement where in i need bpeladmin to update a task assigned to some group.
While doing so ,as task is assigned to group i first acquire the task and then perform update on the task
While performing updation i am getting following

Invalid action on workflow task.
Action UPDATE on task a7a61c38dd54a6cb:d9506a8:121a07d45ee:-7aa7 is not valid because of .
Contact oracle support if error is not fixable.

at oracle.bpel.services.workflow.task.impl.TaskService.performPreActionValidation(TaskService.java:3416)
at oracle.bpel.services.workflow.task.impl.TaskService.performPreActionValidation(TaskService.java:3440)
at oracle.bpel.services.workflow.task.impl.TaskService.addComment(TaskService.java:617)
at oracle.bpel.services.workflow.task.impl.TaskService.addComment(TaskService.java:639)
at oracle.bpel.services.workflow.task.ejb.TaskServiceBean.addComment(TaskServiceBean.java:167)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:396)
at com.evermind.server.ThreadState.runAs(ThreadState.java:622)
at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.TxRequiresNewInterceptor.invoke(TxRequiresNewInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
at TaskServiceBean_RemoteProxy_68d4144.addComment(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
Caused by: ORABPEL-30036

Invalid action on workflow task.
Action UPDATE on task a7a61c38dd54a6cb:d9506a8:121a07d45ee:-7aa7 is not valid because of The task has been acquired by some other user..
Contact oracle support if error is not fixable.

at oracle.bpel.services.workflow.task.impl.TaskService.performPreActionValidation(TaskService.java:3408)
... 32 more
exception is ORABPEL-30036

Invalid action on workflow task.
Action UPDATE on task a7a61c38dd54a6cb:d9506a8:121a07d45ee:-7aa7 is not valid because of .
Contact oracle support if error is not fixable.


When i check wftask table in database , acquiredby column it shows entry as bpeladmin

Following is the code snippet that i am using to perform the task

Task objTask=wfSvcClient.getTaskService().acquireTask(wfCtx,"a7a61c38dd54a6cb:d9506a8:121a07d45ee:-7aa7");

objTask=wfSvcClient.getTaskService().addComment(wfCtx, "a7a61c38dd54a6cb:d9506a8:121a07d45ee:-7aa7", "abc123");

List assigneeGroupLst=objTask.getSystemAttributes().getAssigneeGroups();
String assigneeGroup=null;
if(null!=assigneeGroupLst && assigneeGroupLst.size()>0){
assigneeGroup=((IdentityType)assigneeGroupLst.get(0)).getId();
}
SystemMessageAttributesType sysAttr=objTask.getSystemMessageAttributes();
sysAttr.setProtectedTextAttribute1(assigneeGroup);
wfSvcClient.getTaskService().updateTask(wfCtx, objTask);


The context created is for user BPELAdmin user.

Do i need to give any rights to bpeladmin? Or is there some other way of doing it.

Any help appreciated !!!


Regards,
Bhavik
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 7 2009
Added on Jun 3 2009
6 comments
1,314 views