This discussion is archived
2 Replies Latest reply: Nov 28, 2012 7:21 AM by Pavan69 RSS

Change Workflow Status

969384 Newbie
Currently Being Moderated
Hi, I'm trying to chagne the workflow state to 'pending' from another state such as 'released'. I'm using a custom action to do this. The code is below:

IWorkflow [] wfs = change.getWorkflows();
IWorkflow wf = wfs[0];
String wF = wf.toString();
IStatus [] sts = wf.getStates();
IStatus state = sts[0];
String State = state.toString();
change.changeStatus(state, true, "", false, false, new Object[0], new Object[0], new Object[0], false);

Every time I try to run the process extension I get the error message below:

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

I'vea lso tried changing the status to the next workflow state and I get the same error. Can anybody explain why this is happening and how to fix it ?

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points