CQ Workflow, purpose of “Handler Advance”?

别等时光非礼了梦想. 提交于 2019-12-01 13:44:24

问题


I am working with some custom WorkflowProcess classes in Adobe CQ 5.4

When I configure the workflow step as part of my workflow model, there is an checkbox entitled "Handler Advance, Check if your handler will advance to the next step"

My Java classes do in fact progress the workflow (and sometimes terminate the workflow). i.e.

workflowSession.complete(workItem, routes.get(0));
workflowSession.terminateWorkflow(workItem.getWorkflow());

Given that this custom WorkflowProcess performs these operations, I think that I should be checking the "Handler Advance" option.

I was hoping for a better explanation on this option.

Thanks!


回答1:


The handler advance option when true (checked), will advance the workflow to the next step after the current process is done with its execution.

In case the handler advance option is false (unchecked), the process script has to take care of advancing the workflow to the next step. In case the script doesn't handle this, the workflow would remain in the running state without proceeding further from the current step.

Since your custom workflow process progresses the workflow to the next step, it doesn't make any difference having the handler advanced option checked or unchecked.



来源:https://stackoverflow.com/questions/22923417/cq-workflow-purpose-of-handler-advance

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!