how to liberate the workitem from being in 5(APaused) state?

ihsankocak
ihsankocak Member
edited February 24, 2012 in Documentum #1

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.

Tagged:

Comments

  • DCTM_Guru
    DCTM_Guru Member
    edited February 24, 2012 #2

    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.

  • ihsankocak
    ihsankocak Member
    edited February 24, 2012 #3

    thank you for the reply.how can i configure the activity to continue execution?in web.xml?app.xml?or another place?

    Regards.

  • DCTM_Guru
    DCTM_Guru Member
    edited February 24, 2012 #4

    I always use Workflow Manager or Process Builder to configure my workflows.  There's an option for this in the UI.  If you are building your workflows using straight DFC, I couldnt tell you the specific method to define this.,