Hi
I wrote autoactivity method, but here the workitem is in paused state.when i am printing the state like
workitem.getRuntimeState(); it is showing as 5 .when i am checking this condition
if(workitem.getRuntimeState() ==workitem.DF_WI_STATE_PAUSED ){
system.out.println("It is in paused state");
}
Statement in if block is not printing and when I am resuming the workitem ie., workitem.resume(); it is showing an error.
THREAD: main; MSG: [DM_WORKFLOW_E_WORKITEM_TRANSITION]error: "Workitem (4a00425b8001d10e) fails to make the state transition."; ERRORCODE: 100; NEXT: DfException:: THREAD: main; MSG: [DM_WORKFLOW_E_ACTION_NOT_ALLOWED]error: "This operation is not allowed when the state is 'paused' for workitem '4a00425b8001d10e'."; ERRORCODE: 100; NEXT: null
at com.documentum.fc.client.impl.docbase.DocbaseExceptionMapper.newException(DocbaseExceptionMapper.java:57)
at com.documentum.fc.client.impl.connection.docbase.MessageEntry.getException(MessageEntry.java:39)
at com.documentum.fc.client.impl.connection.docbase.DocbaseMessageManager.getException(DocbaseMessageManager.java:137)
at com.documentum.fc.client.impl.connection.docbase.netwise.NetwiseDocbaseRpcClient.checkForMessages(NetwiseDocbaseRpcClient.java:305)
at com.documentum.fc.client.impl.connection.docbase.netwise.NetwiseDocbaseRpcClient.applyForBool(NetwiseDocbaseRpcClient.java:349)
at com.documentum.fc.client.impl.connection.docbase.DocbaseConnection$1.evaluate(DocbaseConnection.java:1076)
at com.documentum.fc.client.impl.connection.docbase.DocbaseConnection.evaluateRpc(DocbaseConnection.java:1014)
at com.documentum.fc.client.impl.connection.docbase.DocbaseConnection.applyForBool(DocbaseConnection.java:1069)
at com.documentum.fc.client.impl.connection.docbase.DocbaseConnection.apply(DocbaseConnection.java:1054)
at com.documentum.fc.client.impl.docbase.DocbaseApi.witemResume(DocbaseApi.java:1196)
at com.documentum.fc.client.DfWorkitem.resume(DfWorkitem.java:485)
at com.documentum.bpm.DfWorkitemEx___PROXY.resume(DfWorkitemEx___PROXY.java)
Can any one give me the solution.