hi, i looked up every sources. but there is not an exact solution when the workitem in 5(APaused) state and workflow is in 1(Running) state.anyone who knows which methods of workflow and workitem objects should be called in order to make the workitem out of 5(APaused) state and complete the workitem?
my code to do this is below:
oWorkflow.haltAll();
oWorkflow.resumeAll();//i expect from workitem moving the state 5 to 3(Paused)
oWorkitem.resume();//it gives exception here:(This operation is not allowed when the state is 'apaused' for workitem '4a02372980025071')
oWorkitem.complete();
any help would be appreciated.