cancel
Showing results for 
Search instead for 
Did you mean: 

How to use ACS workflow in ADF?

cahyawirawan
Champ in-the-making
Champ in-the-making

Hi,

I am new in Alfresco and its ADF. I would like to create small web application using ADF where I need to manipulate the workflow created in ACS. I can see that there is REST API for workflow like

http://localhost:8080/alfresco/api/-default-/public/workflow/versions/1/tasks

So I expected that there must be an ADF component that I can use to list, get, update, etc the wrokflow in ACS, but I don't find such ADF components. Do I overlook something? or how do other people do it normally? Thanks a lot for any help.

9 REPLIES 9

EddieMay
World-Class Innovator
World-Class Innovator

Hi @cahyawirawan & welcome to Alfresco!

Have you had a chance to look at the documentation on the Alfresco Builder Network? Specifically the Process Instance List component, Task List Component, & many more.

HTH

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!

Hi @EddieMay 

Thanks for your prompt answer. I tried to use Task List component under Process Services API, but I think it requires an Alfresco Process Services, doesn't it? I want to do it without having APS.  Is there any code example to do it? 

Thanks.

EddieMay
World-Class Innovator
World-Class Innovator

Hi @cahyawirawan 

I don't believe it requires APS (which is powered by Activiti) - here's a brief starter tutorial about Activit 7 & ADF. The release notes for ADF version 3.8.0 talk of better Actitivi 7 support after experimental support was included in ADF 3.0.

As for examples, these are perhaps a little outdated but might provide a starting point - ADF Examples & Creating Your Application with ADF .

HTH,

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!

I tried the Task component as follow:

<adf-task-details [taskId]="428">
<adf-no-task-details-template>
<ng-template>
<h1>Sorry, no tasks here</h1>
<img src="example.jpg">
</ng-template>
</adf-no-task-details-template>
</adf-task-details>

But it tried to go to this URL http://localhost:4200/activiti-app/, which is the URL for APS.

AFAIK ADF does not support workflows that are embedded in Alfresco Content Services.

Regards,
Abbas

Thanks Abbas for your info. Then, how do people access the workflow from ADF? Do people use the rest api directly?

As of now, there is a no way to access ACS workflow from ADF.

Yes you might need to create custom services and add custom components too. do share with us Smiley Happy

Regards,
Abbas

@cahyawirawan @abbask01 a bit late, but did you find a way to call workflow frm ADF without using Activiti or APS.

I tried to develop a custom service using webscript to call the RESTfull API but apperantely it is no longer supported in ADF or ACA !!