Audit Exception on Change status

Hi All,

I am getting Audit exception while trying to move a deviation to expire status. 

I have two workflow states of type “Release”. While for one, the change status works fine and moves it to Expire the other it doesn’t. 

I have tried to catch this exception and tried to disable this as shown in the API-SDK guide. But it didn’t work. 

m_session.disableWarning(
(Integer)((APIException)causes[i]).getErrorCode());

Tried reviewing KM-docs. similar exception was observed in PPM module and it was termed as “As designed” feature. 

Stack Trace
Error code : 60104
Error message : See multiple root causes.
Root Cause exception : com.agile.pc.cmserver.base.AuditException

at com.agile.api.pc.APIObject.createError(APIObject.java:121)
at com.agile.api.pc.RouteObject$ChangeStatus932Action.doSdkAction(RouteObject.java:2532)
at com.agile.api.common.SDKAction.run(SDKAction.java:23)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
at weblogic.security.Security.runAs(Security.java:61)
at com.agile.api.common.WebLogicAuthenticator.doAs(WebLogicAuthenticator.java:111)
at com.agile.api.common.Security.doAs(Security.java:54)
at com.agile.api.common.Security.doAs(Security.java:109)
at com.agile.api.pc.RouteObject.doChangeStatus932(RouteObject.java:976)
at com.agile.api.pc.RouteObject.changeStatus(RouteObject.java:960)
at arif.practice.examples.ChangeStatusJava.ChangeDeviationStatus(ChangeStatusJava.java:101)
at arif.practice.examples.ChangeStatusJava.main(ChangeStatusJava.java:56)

Let me know if there is a way to handle it. 

Regards,
Arif

Add Comment
2 Answer(s)

What happens when you move it to expire from within the web client?

Agile Angel Answered on July 17, 2017.

Able to move it to expired status.

on July 18, 2017.
Add Comment
Best answer

Couple of approach two resolve this issue : 

1. Set the auditRelease flag to false in ChangeStatus method. 
2. Load the Workflow table, remove the users where Action = “Awaiting approval” 

Code is working fine and issue is resolved.

Agile Angel Answered on July 18, 2017.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.