Skip to main content
1-Visitor
July 12, 2016
Solved

How to complete Workflow Activity

  • July 12, 2016
  • 2 replies
  • 4862 views

Hi

I am working on the utility where i need to complete the workflow activity does there is any API for it

Best answer by BhushanNehe

Hi,

You can use following API's to complete the task and create voting event. The second method is not marked as supported though.

wt.workflow.work.WorkflowHelper.service.workComplete

wt.workflow.engine.WfEventHelper.createVotingEvent

Regards,

Bhushan

2 replies

16-Pearl
July 14, 2016

Hi,

You can use following API's to complete the task and create voting event. The second method is not marked as supported though.

wt.workflow.work.WorkflowHelper.service.workComplete

wt.workflow.engine.WfEventHelper.createVotingEvent

Regards,

Bhushan

1-Visitor
February 12, 2018

Hi Bhushan,

 

i am also trying to complete Workflow activity and setting vote using below methods. Activity is getting completed. Voting event is set but process is not moving ahead to next activity as per the vote. Can you please add some light to this? do i need to have any additional method call?

 WorkflowHelper.service.workComplete(workItem, principalRef, events);

WfEventHelper.createVotingEvent(null, wfActivity, workItem, principalRef, comment, events, isSigned, workItem.isRequired());

adev-21-VisitorAuthor
1-Visitor
July 15, 2016

thank you Bhushan for your help

but when I am completing the task workflow gets terminated, I am trying to move it to another activity is it possible to do?

16-Pearl
July 18, 2016

A D‌,

Do you have a routing for the activity, can you send me a screen shot of the process manager.

Regards,

Bhushan

adev-21-VisitorAuthor
1-Visitor
July 19, 2016

Hi Bhushan thanks for your reply,

this is how it looks like I have 3 options to perform Create CAD, Create CAD Drawing or create Non CAD, when I try to complete the update doc it terminates the process

Capture2.PNG