留言板

Workflow definition for handler programatically

Daniel G,修改在6 年前。

Workflow definition for handler programatically

Regular Member 帖子: 141 加入日期: 17-3-14 最近的帖子
Hi everyone.

I was facing an issue with workflows and I need help.

I want to make an option in Document Library which starts a workflow when it's clicked. So i have to do all programatically

My problem is this:
I take the handler of the file, which is class DLFileEntry. I get it with WorkflowHandlerRegistryUtil.

In that moment, the WorkflowDefinitionLink of the handler is null, because it has no definition.

I was trying to create a workflowDefinitionLink which is associated with the handler, but I am not able to do.

i can create a definition link, but I don't know how to associate it with the handler.
I want to do something like: handler.setWorkflowDefinitionLink but obviously this method doesn't exist.

Anyone can give me any ideas to do it?

Thanks in advance
thumbnail
Parth N Vachhani,修改在6 年前。

RE: Workflow definition for handler programatically

New Member 帖子: 12 加入日期: 10-5-14 最近的帖子
HI Daniel,

Were you able to achieve it ? We have come across the same requirement and was thinking if it is possible.