Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
Hi
I am working on the utility where i need to complete the workflow activity does there is any API for it
Solved! Go to Solution.
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
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
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());
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?
A D,
Do you have a routing for the activity, can you send me a screen shot of the process manager.
Regards,
Bhushan
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