how to liberate the workitem from being in 5(APaused) state?
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.
Comments
-
1) "...make the workitem out of 5(APaused) state and complete the workitem?" Typically, a workitem is in paused state b/c the workflow method does not complete successfully. There are various options you can do when the workitem fails - halt (and presumably abort entire workflow), re-run (if you think that the cause of the failure is something in the environment that is no longer present (eg required data from registered table has finally been populated), or continue execution. To answer your question, did you configure your activity to "continue execution" when method fails? If not, then there's no way to "complete" workitem.
2) See "Workflow State Diagram" in Content Server Fundamentals for various actions you can take for each workitem state.
0 -
thank you for the reply.how can i configure the activity to continue execution?in web.xml?app.xml?or another place?
Regards.
0
Categories
- All Categories
- 123 Developer Announcements
- 54 Articles
- 153 General Questions
- 148 Thrust Services
- 57 Developer Hackathon
- 37 Thrust Studio
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 918 Core Messaging
- 84 Digital Asset Management
- 9.4K Documentum
- 32 eDOCS
- 190 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 10 XM Fax
- Follow Categories