Skip to main content
1-Visitor
Jul 12, 2016 10:46 AM UTC
Solved

How to complete Workflow Activity

Hi

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

16-Pearl
Jul 14, 2016 5:13 PM UTC

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

5 replies

16-Pearl
Jul 14, 2016 5:13 PM UTC

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

Translate
1-Visitor
Feb 12, 2018 9:54 PM UTC

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());

Translate
adev-21-VisitorAuthor
1-Visitor
Jul 15, 2016 5:00 AM UTC

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?

Translate
16-Pearl
Jul 18, 2016 2:06 PM UTC

A D‌,

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

Regards,

Bhushan

Translate
adev-21-VisitorAuthor
1-Visitor
Jul 19, 2016 2:48 AM UTC

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

Translate