I had written code in dfc to delegate a workitem from userX to usery.
if(witem.getRuntimeState() == 0){
witem.acquire();
System.out.println("WkitemDelegate :: Workitem is acquire.");
}
System.out.println("Delegated to person is ....."+usery);
witem.delegateTask(usery);
witem.complete();
but here when delegating task it is throwing an erro like :
http-8080-6; MSG: [DM_WORKFLOW_E_WORKITEM_TRANSITION]error: "Workitem fails to make the state transition.";
[DM_WORKFLOW_E_NO_ACCESS]error: "This user does not have the permission to perform the current operation on object,
userX has client capability --- contributor.
He can able to acquire workitem but not able to delegate.
can any one help me in this.