Powered By Blogger
Showing posts with label Reopening completed workflow human task. Show all posts
Showing posts with label Reopening completed workflow human task. Show all posts

Wednesday, January 26, 2011

Reopening completed workflow human task

Usecase: Sometimes we may come across a situation where we wanted to re-open the completed workflow human task.

Implementation steps:
  • Capture the token and taskid attributes of completed human task. You can get these task attributes from 'initiateTaskResponseMessage'  outputVariable which will be created in INVOKE activity of human task service

  • Drag and drop database adapter after human task RECEIVE activity and execute delete operation from orabpel.wftask and orabpel.wfroutingslip where taskid = 'Already captured Taskid'
  • Drag and drop invoke activity and link it to TaskServcie partnerlink service and select 'reinitiate Task' operation


  • Drag an Assign activity before last INVOKE and assign previously stored Taskid, token and 'ASSIGNED'  literal value to Taskid,token and state fields of  Invoke_1_reinitiateTask_InputVariable respectively
  • Compile and deploy