Apply kaleo Workflow for document and library in liferay - workflow

I am use Liferay 6.2.
I would apply kaleo workflow for document portlet !
Can you help me?
thank you!

There is no difference in using kaleo workflow between Web Contents or Documents and Media. Just make sure you use context variables available for given type (this might be usefull for you https://www.liferay.com/web/igor.beslic/blog/-/blogs/workflow-in-action-kaleo-workflow-context-variables) The one thing which might be not so obvious, is the place where you configure Documents and Media workflow.
If you want to define workflow for Documents and Media:
Go to documents media section
Click edit on main folder (or different one which you want workflow to be applied)
Select workflow from select

Related

CRM365 On Prem - Document Templates: how to hook the select event in the form menu

The CRM365 Form displays a convenient document template dropdown button where a number of actions could be initiated. Additionally, it displays the list of already existing document templates. The user can select one template in the list and it is downloaded locally by your browser. So far all good.
Our goal is actually to select the template, retrieve it, and create it in a Document Management repository. We have a working solution for this but it involves too many pieces and steps so we are looking for some better ideas.
Ideally we are looking for a solution where we can:
"intercept" the click on the template item and run a JavaScript function
If we find a solution to this, the rest would be just calling our custom workflow to do the rest of the job.
So, is there any way to hook that "select/click" event from the form menu?
Thank you very much for your help and advice.

How to update value of a field for all page in AEM?

I create a site with AEM (Adobe Experience Manager). I have a page type as property-page. The property-page have a field type "Number of event in a page". I want to modify the number of event for all property page.
How to do that?
Thank you & kind regards,
There is no mass-update feature in AEM. Ask your developers for support. They either write you a little tool. Or they could generate a lot of curl-requests based on a query. Another option would be the AEM Groovy Console (https://github.com/OlsonDigital/aem-groovy-console). There you or your developers could write a script.
Finally you can do it one by one manually. Take a look into crx/de, which might be a little bit faster.
If you want to bulk update the page property you may use OTB Bulk Editor feature. Here is a video explaining how to use this.
There is a similar ACS tool for updating sling:resourceType property. You can extend and customize this tool if not happy with OTB feature.

How to create a list of users on in Alfresco Activiti?

so I have this simple question that I would love to get anwserd.
I am new to BPM an Alfresco Activiti and I am workng on with the trial version of Alfresco Activiti to create a sample project for our company.
I decided to work with the Step editor to se what it can do and if it's as powerfull as a normal BPMN 2.0 editor.
Now I am working on a form where one user would need to select the user for the next task. I was wondering if it's possible to use the single select component to display all the users on the server from which the asignee for the next task could be selected. How can this be done?
I know it is not the bes pracitce to show all the users on the server but this is a test project and your help would be really appreciated.
If any more info is required I will gladly edit the post.
Thnak you.
There is a user picker form control in there, that allows searching the whole system. See the third entry:
you can create a dropdown whose options are populated from a rest call which is provided below.
GET api/enterprise/admin/users
This will return list of all users available in JSON format.
Hope it helped.

Start Alfresco Workflow on outside Alfresco Content

I am newbie in Alfresco. I was just going through the Alfresco documents here. I have gone through it, but didn't get the answer of my question as described below.
Is it possible to start workflow(/task) on the content outside of the Alfresco Content (i.e. Our Local System File/Folder)? If yes, how can I achieve the same?
I agree with Younes that you can configure a rule to launch a workflow. In order to do that, you'll want to take a look at the JavaScript workflow API.
Using a rule on a folder will require something to trigger the rule, such as a document being added to the folder. But your question asks if a workflow can be triggered external to Alfresco. To do that, you might consider using a Web Script.
A Web Script is simply a way to extend Alfresco's RESTful API with your own logic. So you could create a web script called "startMyWorkflow" that includes a JavaScript controller leveraging the same API I referenced earlier to kick off the workflow. With that in place, you'd be able to launch the workflow externally using anything that can speak REST over HTTP.
You can setup a rule action to start a workflow if certain conditions are met (files added to some folder, file metadata changed, a new revision has been uploaded ...).
To learn how to create new rules in alfresco follow this tutorial
Update : I may have forgotten to mention that -as the op suggested- he could then setup a cifs/ftp/webdav folder locally to point to some location in the repo having that rule action I was talking about.... So for example adding files to that folder would automatically start a workflow....

How can I get the list of potential workflow actions for the current user?

I would like to embed workflow steps inside and interface: when I display a Milestone object (workflow enabled), I would like to offer the user the choice to trigger the actions available for that specific object (those that appear in the action button in the workflow portlets).
Can someone lead me in the right direction ?
I am using liferay 6.1 GA3 CE.
Many thanks,
Alain