Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Kaleo workflow: API to choose a transition from an initial state
Hi all, in attached file there is a simple image which describes my workflow. A user compiles a form and then he has two possibilites: save it as draft or submit it for approving.
When a user presses one of two buttons I start workflow by WorkflowHandlerRegistryUtil.startWorkflowInstance API and then I would like to execute one of the
two transition: Submission or Draft.
I know that for task we can use WorkflowTaskManagerUtil.completeWorkflowTask where transitionName is an input parameter, but I have a state here and I cannot find
an API for the state that helps me to execute a transition.
I am using Liferay 7.0 GA6 (CE)
Any idea? Do I wrong workflow definition maybe?
Thanks.
Enrico
Attachments:
Hi Enrico,
In this case you start your workflow initiate only in the case submit happen. Don't initiate workflow in Draft save.
Then after all execution will take care by work flow.
Hi Ketan, so you suggest to start workflow after submission only. When an user chooses the draft option the workflow hasn't to start.
Powered by Liferay™